From a database backup I have records without unique Ids.
Some records have unique IDs. Some records with duplicated IDs contains different DateCreated values. Some records with duplicated IDs contains the same DateCreated values.
I'm trying to get a MSSql 2005 query will leave only unique ID values with the most recent DateCreated value.
From
ID| DateCreated
1 | 1/1/09
2 | 1/2/09
2 | 2/2/09
3 | 1/3/09
3 | 1/3/09
To
ID| DateCreated
1 | 1/1/09
2 | 2/2/09
3 | 1/3/09
Help