I have a table with purpose of holding id's.
I want to select from other table ( a big table of millions of records) also many records.
Which one would outperform:
SELECT id, att1, att2
FROM myTable
WHERE id IN (SELECT id FROM @myTabwithIDS)
Or
SELECT id, att1, att2
FROM myTable t
INNER JOIN @myTabwithIDS t2
ON t2.id = t.id