Hi I need some help writing a query
I have two tables in my database
SCHEDULE and STAFF
I have a query that extracts data from SCHEDULE:
SELECT Schedule_No, Rate, StartDate, EndDate, Staff_No FROM dbo.SCHEDULE where Client_No=@Client_No
Staff_No and Staff_Name are the only two columns in the STAFF table.
I want to get the Staff_Name where the Staff.Staff_No = SCHEDULE.Staff_No but as part of the original query above.
I have two tables in my database
SCHEDULE and STAFF
I have a query that extracts data from SCHEDULE:
SELECT Schedule_No, Rate, StartDate, EndDate, Staff_No FROM dbo.SCHEDULE where Client_No=@Client_No
Staff_No and Staff_Name are the only two columns in the STAFF table.
I want to get the Staff_Name where the Staff.Staff_No = SCHEDULE.Staff_No but as part of the original query above.