Hi I have three table named airports, flights, checkin. From this table I need to retrive some fields like:
flight.code,
flight.start_time,
flight.end_time,
flights.start_id,
flights.endid,
airports.name as sloc,
airports.name as eloc
The conditions are:
ckeckin.flight_id = flights.id,
airport.id = flights.startid, --for sloc
airports.id = flights.endid --for eloc
Something like this?