Hi guys,
 
I have a complex query result set  RESULT_TABLE that returns:
 
G        V        P
___________
A        X        1
A        X        2
B        Y        4
B        Z        2    
B        X        8
C        Y        6
C        Z        8
C        X        9
C        Y        11
 
 
G -  defines groups
V -  some value for that specific row
C - defined a display priority - i.e.
 
I need to define a query that returns only the "first' row in each group
- i.e. the row with the lowest display priority:
 
G        V        P
___________
A         X        1
B         Z         2
C        Y         6
 
- most preferably a query that doesn't require selecting RESULT_TABLE
more than once.
 
Thanks,
Eli
***********************************************************************************
This email message and any attachments thereto are intended only for use by the 
addressee(s) named above, and may contain legally privileged and/or 
confidential information. If the reader of this message is not the intended 
recipient, or the employee or agent responsible to deliver it to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please immediately notify the [EMAIL PROTECTED] and 
destroy the original message.
***********************************************************************************

Reply via email to