human
Schema:
Activity (actid, activity_name)
Participates_in (stuid, actid)
Faculty_Participates_in (FacID, actid)
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Faculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)
Please answer with SQL.
assistant
Sure, I understand.
human
Hello! Can you provide me with a list of first name, last name, and faculty ID of all faculty?
assistant
SELECT Fname , Lname , FacID FROM Faculty;
human
Great! Can you update this list to include the activity name associated with each individual faculty member?
assistant
SELECT T1.Fname , T1.Lname , T1.FacID , T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T3.actid ;