Hi All:
I need to query the table below to get the Part_Nos that have the earliest Create_Dt, grouped by UPC. In cases where there is more than one matching result, I want the one with first value returned based on an alpha sort of the Part_nos. Based on the table below, I want to return:
1/4/2010 ABC 123
3/23/2009 GHI 456
My_Table
Create_Dt Part_No UPC
1/4/2010 ABC 123
2/4/2009 DEF 123
5/15/2010 XYZ 456
3/23/2009 GHI 456
3/23/2009 JKL 456
Any help would be most appreciated.
TIA, Sven
I need to query the table below to get the Part_Nos that have the earliest Create_Dt, grouped by UPC. In cases where there is more than one matching result, I want the one with first value returned based on an alpha sort of the Part_nos. Based on the table below, I want to return:
1/4/2010 ABC 123
3/23/2009 GHI 456
My_Table
Create_Dt Part_No UPC
1/4/2010 ABC 123
2/4/2009 DEF 123
5/15/2010 XYZ 456
3/23/2009 GHI 456
3/23/2009 JKL 456
Any help would be most appreciated.
TIA, Sven