J
joho00
I have the following query:
SELECT tableBackup.BackupDate, tableBackup.Type, tableTape.Serial
FROM tableTape INNER JOIN (tableBackup INNER JOIN tableJoinBackupTape
ON tableBackup.ID = tableJoinBackupTape.BackupID) ON tableTape.ID =
tableJoinBackupTape.TapeID
ORDER BY tableBackup.BackupDate DESC;
This works but what I really want to do is ouput only the first
occurence of tableTape.Serial. That is, I want a list of all my backups
sorted by Date but only show the most recent occurence for each tape
(tableTape.Serial) and filter out the rest.
I have three tables (tableTape, tableBackup, tableJoinBackupTape) in a
many-to-many relationship which is causing all the confusion.
Any help is greatly appreciated.
SELECT tableBackup.BackupDate, tableBackup.Type, tableTape.Serial
FROM tableTape INNER JOIN (tableBackup INNER JOIN tableJoinBackupTape
ON tableBackup.ID = tableJoinBackupTape.BackupID) ON tableTape.ID =
tableJoinBackupTape.TapeID
ORDER BY tableBackup.BackupDate DESC;
This works but what I really want to do is ouput only the first
occurence of tableTape.Serial. That is, I want a list of all my backups
sorted by Date but only show the most recent occurence for each tape
(tableTape.Serial) and filter out the rest.
I have three tables (tableTape, tableBackup, tableJoinBackupTape) in a
many-to-many relationship which is causing all the confusion.
Any help is greatly appreciated.