Search This Blog

Wednesday, July 25, 2012

Select query without using "Like" operator


.Select query without using "Like" operator . For eg select employee name start with 'j' and city is 'Noida' in company_name

select * from empdata where CHARINDEX('j',Employee_name)=1 and CHARINDEX('Noida',company_name)>0

No comments :