I have two simple tables: (here only the "id" column)
table1:
id
1
2
3
4
table2:
id
2
4
the sql query should compare the two tables for missing "id" in table2 and return:
1,3
any ideas? 🙂 TY
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several ways to skin this cat:
Or you could use a left outer join: