Please answer the question following this tables. Use this tables to answer database management questions.
2. List the complete Session table (all rows and all columns).
4. List the last name and first name of every therapist not located in Palm Rivers.
6. List the session number and patient number for every therapy that lasted 60 minutes.
8. List the TherapyCode and description for all therapies that are billed in 15-minute units. Sort them in order by description.
10. Currently, therapists are paid at the rate of $35 per billable hour. List the therapist’s last name, first name, and estimated pay for every scheduled therapy. Create a new calculated column named “EstimatedPay” for the estimated pay.
12. List every therapy description performed by Bridgette McClain. Sort the results by description.
14. Calculate the average session time of all sessions performed in October. ]
16. List the patient number and length of session for each patient with the TherapyCode of 97535.
18. Make a table named CurrentBilling. Create a new calculated field named BillableUnits (LengthOfSession / UnitOfTime). Add the following fields: PatientNum, TherapyCode, SessionDate, LengthOfSession, UnitOfTime, and BillableUnits. (Note: the BillableUnits field will be blank for those records with no UnitOfTime.)
2. Select * from Session;
4. Select FirstName , LastName from Therapist where NOT city = 'Palm Rivers';
6. Select SessionNum , PatientNum from Session where LengthOfSession =60;
8. Select TherapyCode , Description from Therapies where UnitOfTime =15 ORDER BY Description;
10. Select FirstName , LastName from Therapist inner join session on Therapist.TherapistID =session.TherapistID .
12. Select Description from Therapies where TherapyCode in (Select Therapy code from Session where TherapistID is (Select TherapistID from Therapist where FirstName = "Bridgette" and LastName="McClain"));
14. Select AVG(LengthOfSession) from Session where (Select month (sessionDate) as month where month = 10 )
16 Select PatientNum , LengthOfSession from Session where TherapyCode = 97535
18. CREATE TABLE CurrentBilling AS (Select PatientNum,TherapyCode,SessionDate, LengthOfSession, UnitOfTime from Session inner join Therapies on Session.TherapyCode =Therapies.TherapyCode) ;
ALTER TABLE CurrentBilling ADD BillableUnits int where BillableUnits =LengthOfSession/UnitOfTime;
Please answer the question following this tables. Use this tables to answer database management questions. 2....