Skip to content
Advertisement

MySQL : calculate SUM of a Query

i have a mysql query that looks like this :

The query returns a table b :

I want to do the sum of those values By

but it doesn’t work because of a syntax error.

is it possible to sum a query like this ? Thanks.

Advertisement

Answer

Try this:

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