I have 3 tables: T1, T2, T3
I need to have all rows from T1 in result and if there are matching records in T2 and T3, then output them also.
So my query looks like
SELECT *
FROM T1
LEFT JOIN T2
ON T1.Id = T2.Id
INNER JOIN T3
ON T2.SecondId = T3.Id
But in result, I receive only records that have some records in T3. Is it the same behavior as I would write
SELECT *
FROM T1
LEFT JOIN T2
ON T1.Id = T2.Id
WHERE T2.Value = 4
where LEFT JOIN behaves like INNER JOIN because of WHERE clause?