Morpheus7
asked on
SQL Percentages
Hi,
I have the table with data as follows:
LocationID GroupID
10 20
10 20
10 20
10 10
10 60
10 20
11 20
I would like to return the locationIDs, etc, where the number of a spcific GroupID,for example 20, for that location is 80% or more of the total for that location.
Any help would be appreciated
Thanks
I have the table with data as follows:
LocationID GroupID
10 20
10 20
10 20
10 10
10 60
10 20
11 20
I would like to return the locationIDs, etc, where the number of a spcific GroupID,for example 20, for that location is 80% or more of the total for that location.
Any help would be appreciated
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window