Question: Multi - Table SQL QueriesComplete the following exercises to practice writing multi - table SQL queries.Use the following connection string to connect to the database
MultiTable SQL QueriesComplete the following exercises to practice writing multitable SQL queries.Use the following connection string to connect to the database in your queries: Server;DatabasePatientRecordsDB;User Idcisc;Passwordciscpassword; Submit your queries as a single SQL script.Include the exercise number in a comment before each query.Use the following format for your queries: Exercise : List Patients and Their Doctors Retrieve the full names of all patients of Dr Ashley Mitchell. Exercise : Find Patients with Allergies Which patients are allergic to Peanuts? Exercise : Find Doctors in a Specific Department Which Doctors First and Last Name are in Paediatrics or Paediatric surgery? Exercise : Map Doctors to Insurance Providers Which insurance does Dr Stephanie Hernandez accept? Exercise : Find Patients of a particular Doctor Retrieve the full names of all patients of Dr Ashley Mitchell. Exercise : Patients with Multiple Appointments Find patients who have multiple appointments. Exercise : List the Medications Prescribed by Each Doctor Retrieve the full list of medications and dosages along with the doctors who prescribed them. Exercise : Find Patients Who Have Missed Their Appointments Retrieve a list of patients who have appointments marked as "Missed". Exercise : Find Prescriptions for a Patient What medications have been prescribed to Matthew Thompson? Exercise : How many patients have appointments in Radiology? How many patients whose doctor belongs to a specific department.
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
