Question: Create a query for the ff: MySQL workbench For each practitioner, list their ID, first name, last name, the total number of days and the

Create a query for the ff: MySQL workbench

  1. For each practitioner, list their ID, first name, last name, the total number of days and the total number of hours they are scheduled to work in a standard week at the Medical Practice. Assume a workday is nine hours long.
  2. List the Patient's first name, last name and the appointment date and time, for all appointments held on 18/09/2019 by Dr Anne Funsworth.
  3. List the ID and date of birth of any patient who has not had an appointment and was born before 1950.
  4. List the patient ID, first name, last name and the number of appointments for patients who have had at least three appointments. List the patients in 'number of appointments' order from most to least.
  5. List the first name, last name, gender, and the number of days since the last appointment of each patient and 23/09/2019.
  6. List the full name and full address of each practitioner in the following format exactly.
    Dr Mark P. Huston. 21 Fuller Street SUNSHINE, NSW 2343
    Make sure you include the punctuation and the suburb in upper case.
  7. Sort the list by last name, then first name, then middle initial.
  8. List the patient id, first name, last name and date of birth of the fifth oldest patient(s). 
  9. List the patient ID, first name, last name, appointment date (in the format 'Tuesday 17 September, 2019') and appointment time (in the format '14:15 PM') for all patients who have had appointments on any Tuesday after 10:00 AM.
  10. Create an address list for a special newsletter to all patients and practitioners. The mailing list should contain all relevant address fields for each household. Note that each household should only receive one newsletter.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure Ill provide you with the queries one by one Lets get started 1 For each practitioner list their ID first name last name the total number of days and the total number of hours they are scheduled t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!