I have two integer columns and I wish to select rows with particular pairings of values. What SQL syntax can I use? For example, using IN it might look something like this if IN supported this syntax:
select *
from myTable
where value1, value2 in ((2,3), (3,4), (2,5), (3,6))
To select those rows with
value1 == 2 and value2 == 3 or value1==3 and value2==4 or 2/5 or 3/6.
I’m using a proprietary SQL system, so basic SQL is preferred. Or if there is none, having a statement that works in some standard SQL would be useful as well.
1 Answer