Skip to content
Advertisement

Get NULL values [closed]

How would I get a NULL value as well in this query:

This shows the month because it exists but I also want to have another row if it doesnt exist (Not another column)

Advertisement

Answer

You can use the following technique:

The second query will add a row with null if the cte returns no results.

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