Home Forums SQL Server 7,2000 T-SQL sub query... RE: sub query...
jpipes
SSChampion
Points: 12230
More actions
July 18, 2003 at 2:25 pm
#466110
SELECT a.* FROM TableA a WHERE EXISTS (SELECT * FROM tableB b WHERE a.Column1 = b.column1 AND a.column2 = b.column2)
or
SELECT a.* FROM TableA a INNER JOIN tableB b ON a.Column1 = b.column1 AND a.column2 = b.column2
is this what you meant?