Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Comparing T1 to T2

$
0
0

Hello,

please, could somebody help me to customize this query:

SELECT LastName, ParentsName, FirstName, DateOfBirth
FROM T1
WHERE (LastName and ParentsName and FirstName and  DateOfBirth) NOT IN
    (SELECT LastName, ParentsName, FirstName, DateOfBirth
     FROM T2)

Namely, if it consists of only one field, it works. But, what if I need to compare more fields, it fails?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>