Let’s say there are 4 tables , such that
t1.id = t2.pid
and
t3.id = t4.pid
How do I fetch records where t1.val1 != t3.val1 AND t2.val2 != t4.val2?
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.
You need to use
LEFT OUTER JOINto find non matching records from two tables.Visit: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html