I’ve seen a query using a LEFT JOIN as opposed to an INNER or LEFT OUTER.
What is a LEFT JOIN exactly?
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.
Where an
inner joinreturns only entries that match in both tables, aleft jointakes all the entries from first table and any that match in the second table. Aright joinis the reverse of aleft join(ie: all from the second table)So if TableA is
and TableB is
Then
Select * from TableA inner join TableB on TableA.A = TableB.AreturnsAnd
Select * from TableA left join TableB on TableA.A = TableB.Areturns