Skip to content
Advertisement

Calculate percentage of SQL Group BY

The following SQL statement:

Returns the following result:

Result

Now I’m trying to get a percentage for each of those COUNT(FTR)’s.

So the sum of those 3 numbers is 153. Now I would like to get the percentage of them

Advertisement

Answer

You can use window functions, if I understand correctly:

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