Before u r writing these type of queries, remember one point.
In case of Like condition u have top mention '%' symbol, For Ex.
select * from persons where firstname like 'Peters%';
In case of = condition u have no need to mention any thing but u have to give Exact value for that field, For Ex.
select * from persons where firstname = 'Peters';
If the data is with that same name, the data will display.
I think it's correct answer for ur query.






Reply With Quote