In some SQL dialects, you can state (something as):
SELECT * FROM SomeTable WHERE (val1,val2) IN
(SELECT val1,val2 FROM SomeOtherTable)
But I don't know how to do that in the TSQL (sql server 2k) I am using.
I am aware of (and using for now) workarounds like using joins or concatenated values, but is there some syntax in TSQL I am overlooking to do just that?
UPDATE : This is valid SQL-99 syntax, that's why I consider a join a workaround, even if it would be more performant. My question is maybe put better as :
Is there an implementation of this syntax in TSQL?
UPDATE2 : I just tested this syntax om Mysql and it works fine there.