The first way is quicker, since it doesn't build a temporary table in memory for the set.
BUT - most database engines will perform even faster if you use the JOIN syntax.
Select a.x
FROM tablea a
JOIN tableb b
WHERE a.x=b.x
And make sure that a.x and b.x are primary keys !!!
-Chris
visit my
BiteSize SQL Tutorial