Skip to content
Advertisement

Group By and Count the total number of same status value

I have 2 tables, Order and Store. And here are some of the fields from the table I need.

Order table

How can I achieve to have this output:

Thank you.

Advertisement

Answer

Just use case when, as blow:

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