Appointments AppointmentID 1 P1 2 P2 PatientID AppointmentTime AppointmentDate TreatmentID DentistID 6/6/2021 F1 9/8/2021 G1 5/9/2021 F1 12:30 D2 1:00 D3 P3 8:00 D3 4 P4 9:00 7/9/2021 T2 D5 5 P5 8:00 18/11/2021 T1 D4 6 P3 4:00 1/12/2021 w1 D1 Write the SQL commands based on the tables given. 1) Display the list of Patients containing PatientName, PatientContactand PatientEmailwith Patient's name ending with 'a'. 2) Display the AppointmentDate, AppointmentTime, PatientName and DentistName for all appointments in month of September. 3) Add a new attribute called Status in the Appointments table. The length is 20 characters the default value is 'Active'. 4) Display the Patient Name and the total number of appointments for every patient so far and sort according to the patient's name. 5) Display how much Dentist called David have charged for the patients' treatments so far. 6) Display the cheapest treatment price. 7)Anthony require another follow up appointment for tecth cleaning. Create an SQL statement to add the appointment. The appointment should on the 6thDecember 2021and the time should be the same time for the previous appointment and attended by the same doctor 88
Appointments AppointmentID 1 P1 2 P2 PatientID AppointmentTime AppointmentDate TreatmentID DentistID 6/6/2021 F1 9/8/2021 G1 5/9/2021 F1 12:30 D2 1:00 D3 P3 8:00 D3 4 P4 9:00 7/9/2021 T2 D5 5 P5 8:00 18/11/2021 T1 D4 6 P3 4:00 1/12/2021 w1 D1 Write the SQL commands based on the tables given. 1) Display the list of Patients containing PatientName, PatientContactand PatientEmailwith Patient's name ending with 'a'. 2) Display the AppointmentDate, AppointmentTime, PatientName and DentistName for all appointments in month of September. 3) Add a new attribute called Status in the Appointments table. The length is 20 characters the default value is 'Active'. 4) Display the Patient Name and the total number of appointments for every patient so far and sort according to the patient's name. 5) Display how much Dentist called David have charged for the patients' treatments so far. 6) Display the cheapest treatment price. 7)Anthony require another follow up appointment for tecth cleaning. Create an SQL statement to add the appointment. The appointment should on the 6thDecember 2021and the time should be the same time for the previous appointment and attended by the same doctor 88
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section3.2: Visual Overview: Page Layout Grids
Problem 6QC
Related questions
Question
100%
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning