(comments are locked)
|
|
The problem with your query was the wrong WHERE clause placement and not aliasing the subqueries output. I hope this will help I personally like @Shawn Melton's coding approach as that is a much readable and easier format. But one cannot specify any filter in the main WHERE clause for the tables used in LEFT/RIGHT JOIN other than the table for which all rows to be returned. This would turn the LEFT/RIGHT JOIN to INNER JOIN functionality.
(comments are locked)
|
|
I am no expert on T-SQL and my answer could very well be completely wrong. (Which if it is this will be a learning lesson for the both of us.) This is just a best guess...
(comments are locked)
|


It is giving an error of left join Please help