Question: For this lab you will be using SQL SELECT statements to query your database tables. You will be turning in the results of the following
For this lab you will be using SQL SELECT statements to query your database tables. You will be turning in the results of the following queries:
List all Patients and what Bed they are assigned to Join two tables patient and bed
List all patients who had Treatments and what Treatment they received Join three tables Patient, Treatment, and PatientTreatment
List all patients who had tests and what Test they had Join three tables Patient, Test, and PatientTest
List the employees doctors nurses, etc. who assisted each patient Join three tables: Patient, Personnel, and PatientPersonnel
List all patients in alphabetical order
List all patients who live in Atlanta and had a test completed Join three tables Patient, PatientTest, test
List all patients who live in either Woodstock or Roswell who had a treatment completed Join three tables Patient, PatientTreatment, treatment
If you don't have data in your created tables that will allow you to create these queries add appropriate data to your tables before doing the queries.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
