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.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 6HOA: A new table has been requested to support tracking automated emails sent to customers. Create the...
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning