I have following Sample table. table having combination of name and key column unique records
ID name key key_type
-----------------------------------
118 ab 12 aw1
119 fb 13 1Y2
120 cb 14 qw3
121 ab 15 4123
122 cs 12 23d2
select * from Sample where name ='ab' and key= '12'
select * from Sample where name ='fb' and key= '13'
how to write single query for both record ?
WHERE (a AND b) OR (c AND d)should do the trick