Question: Write the SQL code to list the session date and therapists last name to display the upcoming schedule for the therapists. a. SELECT Session.SessionDate, Therapist.LastName
Write the SQL code to list the session date and therapist’s last name to display the upcoming schedule for the therapists.
a. SELECT Session.SessionDate, Therapist.LastName FROM Therapist INNER JOIN (Therapies INNER JOIN [Session] ON Therapies.
TherapyCode = Session.TherapyCode) ON Therapist.TherapistID = Session.
TherapistID;
b. SELECT Session.SessionDate, Therapist.LastName FROM Therapist INNER JOIN Session ON Therapist.TherapistID = Session.TherapistID;
c. SELECT Session.SessionDate, Therapist.LastName FROM Therapist INNER JOIN ON Therapist.TherapistID = Session.TherapistID;
d. SELECT LastName FROM Therapist INNER JOIN Session ON Therapist.TherapistID = Session.TherapistID;
Session Num 27 28 29 30 31 32 33 34 35 36 37 38 SessionDate 10/10/2021 10/11/2021 10/11/2021 10/12/2021 10/15/2021 10/16/2021 10/17/2021 10/17/2021 10/18/2021 10/18/2021 10/19/2021 10/19/2021 PatientNum 1011 1016 1014 1013 1016 1018 1017 1015 1010 1019 1020 1021 Length OfSession 45 30 60 30 90 15. 60 45 30 75 30 60 TherapistID JR085 AS648 SW124 BM273 AS648 JR085 SN852 BM273 SW124 SN852 BM273 AS648 TherapyCode 92507 97010 97014 97033 98960 97035 97039 97112 97113 97116 97124 97535
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
