I HAVE TABLE LIKE THIS...
sno name l ocation gender
1 raju reddy hyd male
2 praveen vizg female
3 srinu sdf male
compare thee coloums
select name like reddy and location hyd and gender male
i want output like this below
sno name location gender
1 raju reddy hyd male
Compare three fields ....................
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Feb 22, 2014, 2:16 AM EST
select * from tablename where name like '%reddy' and location='hyd' and gender='male';