Home » SQL & PL/SQL » SQL & PL/SQL » query help
query help [message #219108] Mon, 12 February 2007 23:59 Go to next message
Messages: 1
Registered: February 2007
Junior Member
My table has data like the foll.

Grade Percent
A 10
B 20
A 20
B 50
A 70
B 70
A 30
B 40

I need to get the maximum percent and get the grade corresponding to that. However if both A and B have the maximum percent (in this case they do - for 70) then A has precedence over B so I need to return A.

Please give me a query for the above.
Re: query help [message #219109 is a reply to message #219108] Tue, 13 February 2007 00:02 Go to previous message
Messages: 24956
Registered: January 2009
Location: SoCal
Senior Member
>Please give me a query for the above.
Please do you own homework & stop expectng others to solve YOUR problems.
ONLY for someone who just learned to spell SQL, is this an "EXPERT" question.

[Updated on: Tue, 13 February 2007 00:23] by Moderator

Report message to a moderator

Previous Topic: Cursor Or Ref Cursor
Next Topic: Getting Client IP ?
Goto Forum:

Current Time: Thu Oct 20 16:55:48 CDT 2016

Total time taken to generate the page: 0.05296 seconds