Skip to content
Advertisement

SQL Statement summarize missing employee certifications

I am trying to create a report on tables that I can’t modify and am not sure if this is even possible.

Using the script below, I am trying to get a query result of:

Advertisement

Answer

You can cross join employees and certifications to generate all possible combinations, then use a subquery to check whether each tuple exists in the bridge table:

This can also be done with a left join:

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