Hope someone can help, this has really stumped me in terms of the best way to get the data with the least code (or at least most effecient code).
I have two tables
Flights
FlightID - UniqueID primary key
FlightName - Text
FlightDate - Date
PassengerFlight s
Passenger ID - UniqueID primary key
Flight ID - UniqueID foriegn key
Last Name - Text
First Name - Text
Seat - Text
I need a query that can group on Last Name & First Name and for each group I need to see a count of that passenger's total flights in the last year, FlightDate of the passengers last flight, FlightName of the last flight, and the Seat they were in on their last flight.
Any ideas? Thank-you
I have two tables
Flights
FlightID - UniqueID primary key
FlightName - Text
FlightDate - Date
PassengerFlight s
Passenger ID - UniqueID primary key
Flight ID - UniqueID foriegn key
Last Name - Text
First Name - Text
Seat - Text
I need a query that can group on Last Name & First Name and for each group I need to see a count of that passenger's total flights in the last year, FlightDate of the passengers last flight, FlightName of the last flight, and the Seat they were in on their last flight.
Any ideas? Thank-you
Comment