Reputation: 3092
How can I write the following scenario as query in Oracle
SELECT *
FROM table1
WHERE col1 = 'SOMENAME' WITH (EITHER COL2 = 'Y' OR COL3 = 'Y')
Upvotes: 0
Views: 50
Reputation: 175706
You need to use AND
:
Select *
from table1
where col1 = 'SOMENAME'
AND (COL2 = 'Y' OR COL3 = 'Y')
Upvotes: 4