Skip to content
Advertisement

SQL Server CASE expression that does not result in waterfall

If I have a case expression is there a way it does not work as a waterfall?

For example if I have the following dataset:

Is there a way I can show the following results

To show

Right now it shows as

Advertisement

Answer

You can use a left join instead:

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