anorthcote
Programmer
Hi,
I have a table as follows
ID Month Year
13 Mar 2006
17 Apr 2004
18 Sept 2004
19 Mar 2007
19 Sept 2004
20 Dec 2004
21 Nov 2007
23 Mar 2004
24 Mar 2005
25 July 2005
25 Oct 1998
26 May 2006
28 Apr 1999
28 Sept 2005
29 Apr 2006
29 Feb 1999
30 June 2007
I want to select from this just the newest date entry for each ID. I also want to then convert the Month and Year columns in to a format that VB can interpret as a date.
I'm a relative beginner to SQL query and I am struggling to work this one out. I hope someone can help?
I have a table as follows
ID Month Year
13 Mar 2006
17 Apr 2004
18 Sept 2004
19 Mar 2007
19 Sept 2004
20 Dec 2004
21 Nov 2007
23 Mar 2004
24 Mar 2005
25 July 2005
25 Oct 1998
26 May 2006
28 Apr 1999
28 Sept 2005
29 Apr 2006
29 Feb 1999
30 June 2007
I want to select from this just the newest date entry for each ID. I also want to then convert the Month and Year columns in to a format that VB can interpret as a date.
I'm a relative beginner to SQL query and I am struggling to work this one out. I hope someone can help?