I have a table called 'DiskDrive' which has the following data in it. The table contains the history of the free space on the specific disk drives.-------------------------------------------------| DiskID | DriveLetter | FreeSpace | Updated | -------------------------------------------------| 1 | C: | 50 | 2004-08-20 || 1 | C: | 100 | 2004-08-10 || 1 | A: | 0 | 2004-08-01 || 1 | C: | 500 | 2004-08-01 || 1 | D: | 100 | 2004-08-01 |-------------------------------------------------
I need it to display all the distinct drive letters but only include the values from the lastest update.So the recordset that I want to be returned is...-------------------------------------------------| DiskID | DriveLetter | FreeSpace | Updated | -------------------------------------------------| 1 | A: | 0 | 2004-08-01 || 1 | C: | 50 | 2004-08-20 || 1 | D: | 100 | 2004-08-01 |-------------------------------------------------
Any idea of how I can write this into a single query I can create as a view?