I have the tables tbl_staff and tbl_trip.
I want a select query which lists staff members and shows all the trips they have managed (been group leader of.)
In the trip table, the group leader is stored in Group_Leader_ID, which corresponds with Staff_ID. The fields I want to be output is the staff name from the staff table and the trip title from the trip table.
I thought I had the knowledge to write the SQL statement for this but got confused now that i'm bringing in more than one table. If anyone could guide me in the right direction, that would be great.
I want a select query which lists staff members and shows all the trips they have managed (been group leader of.)
In the trip table, the group leader is stored in Group_Leader_ID, which corresponds with Staff_ID. The fields I want to be output is the staff name from the staff table and the trip title from the trip table.
I thought I had the knowledge to write the SQL statement for this but got confused now that i'm bringing in more than one table. If anyone could guide me in the right direction, that would be great.