Select Query by Pair of fields using an in clause
This works on my DB2 (version 9.7 on Linux/Unix/Windows) by using this syntax: SELECT * FROM PLAYERS WHERE (First_Id, Second_Id) IN (VALUES (1,1), (1,2), (1,3)) This syntax won’t work on DB2 on the Mainframe (at least in version 9.1) because you can’t substitute a sub-select with a VALUES expression. This syntax will work: SELECT * … Read more