Skip to content
Advertisement

group by with multiple columns and with condition

My query used to be

and it was working fine.

Due to certain conditions I changed rule at Device_id

And my changes look like

I did something wrong at GROUP BY.

Anyone please suggest how to fix this.

Thanks

Advertisement

Answer

Is this what you want?

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