Here is the requirement
I have two tables like below, OrderList is a data table which include 3 fields stored StaffId which is a foreign key from staff table. Noted that some records may not have a value in this table.
OrderList
OrderId Marketing_Staff_ID Finance_Staff_Id ManagerId
1 STAFF001 STAFF002 STAFF003
2 STAFF005 STAFF003
3 STAFF004 STAFF004 STAFF003
4 STAFF001 STAFF002 STAFF003
5 STAFF001 STAFF007
Staff
Staff_Id Staff_Name
STAFF001 Jack C.K.
STAFF002 William. C
STAFF005 Someone
I want to write a SQL statement can also select staff name for each record form OrderList, (For these records without staff ID, leave N/A in the name field)
OrderId Mkt StaffID Name Finance StaffId Name ManagerId, Name
1 STAFF001 Jack C.K. STAFF002 William. STAFF003 Chan.Chi
So how can I write the SQL? Left join or sth?
Thank you very much as I am really a beginner in SQL.