acsakany
asked on
SQL TOP 1
I have a table with the following information
WINE_ID PRICE_BRACKET TOTAL
1 3 6
1 5 4
1 9 1
2 7 8
2 6 2
2 2 3
3 1 10
3 2 6
3 4 1
How would I write an SQL query that would pick the price_bracket for each wine with the largest total?
WINE_ID PRICE_BRACKET TOTAL
1 3 6
1 5 4
1 9 1
2 7 8
2 6 2
2 2 3
3 1 10
3 2 6
3 4 1
How would I write an SQL query that would pick the price_bracket for each wine with the largest total?
ASKER CERTIFIED 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