Hi,
I am a Excel VBA programmer, I am not so good in SQL and Access. can any one help me with the below scenario
The requirement is to get the latest serviced date for each car in the table. The table looks like this:
The expected result is as below:
I have tried different ways, by creating a sub query, creating two alias names for the same table and used it like two tables etc..., I finally gaveup and went to google. Looks like I am not good enough to google out what I want.
Any help to get the expected result would be greatly appriciated.
Thanks in advance,
Narendran S
I am a Excel VBA programmer, I am not so good in SQL and Access. can any one help me with the below scenario
The requirement is to get the latest serviced date for each car in the table. The table looks like this:
Code:
_________________________ [B][U]Car.No[/U] [U]SrvcID[/U] [U]Service Dt[/U][/B] ------------------------- CAB123 200901 31/01/2009 OWN321 201004 24/04/2010 CAB123 201001 18/01/2010 OWN321 201101 23/01/2011 CAB123 201203 24/03/2012 OWN321 201109 14/09/2011 OWN321 201209 28/04/2012 -------------------------
Code:
_________________________ [B][U]Car.No[/U] [U]SrvcID[/U] [U]Service Dt[/U][/B] ------------------------- CAB123 201203 24/03/2012 OWN321 201209 28/04/2012 -------------------------
Any help to get the expected result would be greatly appriciated.
Thanks in advance,
Narendran S
Comment