Hello, SQL2008R2
If you have a left join that in turn is joined by an inner join why do I not get all records
will only give where B matches A while using a left join to C gives what I would expect, all records from A with or without a matching B.
I you could explain or give a reference I would be greatful.
Thank you
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
If you have a left join that in turn is joined by an inner join why do I not get all records
Code:
SELECT A.ValA1, B.Val1
FROM MyTableA A
LEFT JOIN MyTableB B ON A.AID = B.AID
INNER JOIN MyTableC C ON B.BID = C.BID;
I you could explain or give a reference I would be greatful.
Thank you
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!