Skip to content
Advertisement

How to group this table properly?

Here’s my dataset with expected out. But I am having issues doing it.

Also, I attached the query I created and the output is not correct. could you please point me to where my mistake is?

This is the query I created but the output is incorrect.

Expected output:

Advertisement

Answer

You’re almost there – you just need to add aggregation:

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