Just now I needed to do something like the following query, and was surprised that it actually worked as intented. However I cannot find any documentation on it so I'm a little afraid about unknown side effects of this. Here's what I wrote:
select * from Table1 where (col1, col2) in (select col3, col4 from Table2)
This seems to be matching a pair of columns against a list of column-pairs. Is this how it is supposed to work, or can I expect some nasty surprises down the road?