If we need to query a table based on some set of values for a given column, we can simply use the IN clause.
But if query need to be performed based on multiple col
In Oracle you can do this:
SELECT * FROM table1 WHERE (col_a,col_b) IN (SELECT col_x,col_y FROM table2)