Link to home
Create AccountLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

find rows in two tables

I have two table where both have confirm_number columns.  I want to find out a list of confirm_number that exist in Tablle_1, but does not exist in Table_2.
ASKER CERTIFIED SOLUTION
Avatar of Russ Suter
Russ Suter

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SELECT T1.* 
FROM Table_1 AS T1
LEFT JOIN Table_2 AS T2
ON T1.confirm_number = T2.confirm_number
WHERE T2.Confirm_number IS NULL

Open in new window


Giannis
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.