Sorry for such a basic question, but what will be the output of the below LEFT JOIN?
I want to left outer join the first table with the second ON Col1 and Col2.
My question is, if there is a Col1 match but both Col2 are NULL, will these records be joined?
FROM
Table1 as t1
LEFT JOIN Table2 as t2 ON
t1.Col1 = t2.Col1 and t1.Col2 = t2.Col2
and if col2 in either or both tables is null for a matching value of col1, that row for Table2 will not appear in the result. Instead, you will see nulls for all columns of Table2. This is a result of the logical expression NULL = NULL being unknown (neither true, nor false).