I have a table that has a scandate, name and other customer data. The problem is the application duplicates the customer information with each new scan like:
2007-05-25 George M 45 50$
2006-08-08 Allie F 50 70$
2005-07-07 Allie F 50 80$
2004-05-05 Allie F 50 90$
I want to extract one record per distinct name and use ALL the information of the first record according to date to have a result as so
2007-05-25 George M 45 50$
2004-05-05 Allie F 50 90$
I'm assuming it has to do with the WHERE statement or perhaps the HAVING statement? Any suggestions?
2007-05-25 George M 45 50$
2006-08-08 Allie F 50 70$
2005-07-07 Allie F 50 80$
2004-05-05 Allie F 50 90$
I want to extract one record per distinct name and use ALL the information of the first record according to date to have a result as so
2007-05-25 George M 45 50$
2004-05-05 Allie F 50 90$
I'm assuming it has to do with the WHERE statement or perhaps the HAVING statement? Any suggestions?