I am currently working on a database with the following structure:
- Passport Number
- Flight Number
- Flight Date
- Memo
Supposedly the composite key is Passport Number, Flight Number and Flight Date, I was wondering if there's anyway where I can display only the latest flight for each passport number?
My aim is to only use SQL and not stored procedure (which will otherwise be quite easy) so that the SQL is portable across databases.
Appreciate any advice please.