4. Create the following TEN queries: (read the following Project Submission Requirements’ file no 3 part carefully about the submission process for this section) 1) Create a query that returns Patients’ full names, addresses, phone numbers and email addresses. (Ten results minimum). 2) Create a query that lists all patients who have not had any appointment in the clinic in the last 2 years (at least one patient) 3) Create a query that returns the all appointment by a particular patient in the year of 2020 (should return 5 appointments at least) the result set would include patient names, examining doctors’ and nurses’ names, dates and times of the appointments, any tests ordered by the doctors for the patient.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

4. Create the following TEN queries: (read the following Project Submission
Requirements’ file no 3 part carefully about the submission process for this
section)
1) Create a query that returns Patients’ full names, addresses, phone
numbers and email addresses. (Ten results minimum).
2) Create a query that lists all patients who have not had any appointment
in the clinic in the last 2 years (at least one patient)
3) Create a query that returns the all appointment by a particular patient in
the year of 2020 (should return 5 appointments at least) the result set
would include patient names, examining doctors’ and nurses’ names,
dates and times of the appointments, any tests ordered by the doctors
for the patient.
4) Create a query that returns all appointments that were either cancelled,
or patients were No Show in the month of December 2020. (five results
minimum)

5) Create a query that that returns staff members’ names (excluding
doctors), their hourly rates, number of hours worked and Salary
(calculated column; there are 13 employees in the clinic) for the two
weeks period (
6) The Clinic Manager has decided to send “Happy holidays” greeting cards
in December and needs the full names and complete addresses (street
address, city, province, Postal Code) for all human beings who are part of
the clinic (Doctors, nurses, patients, secretaries etc) so create a query that
returns this information (usually called a mailing label)
7) Create a query that returns all patients enrolled permanently with one of
the doctors
8) Create a query that returns a list of all patients and their family member
(add a column primary member id in the patient table; make one patient
as the primary member and then create another column called
relationship and add husband, wife, son, daughter etc.)
9) Create a query that would create a list of all patients that were seen by a
particular doctor on a given date (i.e. 12 December, 2020)
10) Create a query that would return name of a patient who paid some
sort of a fee to the clinic, also retrieve the service for which he paid and
the doctor’s name (for example Dr Smith, Sick Note) 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Create a query that that returns staff members’ names (excluding
doctors), their hourly rates, number of hours worked and Salary
(calculated column; there are 13 employees in the clinic) for the two
weeks period

 

Create a query that returns all patients enrolled permanently with one of
the doctors

 

Create a query that would create a list of all patients that were seen by a
particular doctor on a given date (i.e. 12 December, 2020) 

Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

What answer for this two?

4) Create a query that returns all appointments that were either cancelled,
or patients were No Show in the month of December 2020. (five results
minimum)

8) Create a query that returns a list of all patients and their family member
(add a column primary member id in the patient table; make one patient
as the primary member and then create another column called
relationship and add husband, wife, son, daughter etc.)

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Query Syntax
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education