Skip to content
Advertisement

Select where all columns in list item

How do I do the equivalent of the following in SQL Server?

I only want to match rows where

There can be an arbitrary number of match conditions.

The only solution I have been able to find is the above, but doubt it would scale to 1000s of dynamic values.

Advertisement

Answer

Put those value in temp table or use Table Value Constructor

Use INTERSECT Set Operator

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement