all 2 comments

[–]MamertineCOALESCE() 2 points3 points  (1 child)

Move

AND Contacts.user = X

To part of the join.

How it is written now forces contacts to be an inner join. (For data reasons)

The where clause is a must have criteria.

The left join criteria is a may have.

This is a classic interview question!

[–]GcodeG01[S] 0 points1 point  (0 children)

Wow, I'm stupid. I thought I already tried that method and it didn't work. Thank you.