Skip to content
Advertisement

SQL Query for multiple joined tables

I am querying against a SQL Server database and I’ve been struggling to get the result set I want. I feel like it is possible but I’m just unable to do it. Here is how the DB is layed out.

I’d like to return a result set that looks like this:

I’ve unsuccessfully tried using CTE‘s:

I’ve also unsuccessfully tried UNION‘s:

Any help would be appreciated!

Advertisement

Answer

You need to LEFT JOIN the Score table:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement