how to get the first row of record ? [message #404712] |
Sat, 23 May 2009 00:30 |
greentea
Messages: 12 Registered: May 2009
|
Junior Member |
|
|
I have the following data
Table name: Customer
Customer Location Contact_Person
-------- -------- ---------------
A001 Misisipi Henry
A001 Boston Emily
A002 Angel
A002 L.A. John
A002 New York Hari
In this table, 3 of the field are primary key.
How do I select the first row of the data that group by customer and location?
Expected data:
Customer Location Contact_Person
-------- -------- ---------------
A001 Misisipi Henry
A002 A002 Angel
|
|
|
|