Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HEELLLP ME AS SOON AS POSSIBLE DUE IN 2 WEEKS. THANK YOU!! Project Module 3 (40 marks) Consider the following relations Patients(pid, name, address,

image text in transcribed

image text in transcribed

PLEASE HEELLLP ME AS SOON AS POSSIBLE DUE IN 2 WEEKS. THANK YOU!!

Project Module 3 (40 marks) Consider the following relations Patients(pid, name, address, telephone, care_centre_id) Care_centres(cid, name, location, nurse_charge_id) Treatments(tid, patient_id, physician_id, treatment_name, date) Nurses(nid, name, care_centre_id, certificate_type, telephone, salary) Physicians(phid, name, pager_number, specialization, salary). Use Oracle to complete the following tasks. Create the tables that correspond to these relations in your Oracle home database. (6 marks) If not automatically created by the DBMS, create indexes corresponding to the primary and foreign keys. (6 marks) Populate these tables with some sample data, and write SQL queries that show the content of each table after entering the data. (6 marks) For some strategic decisions, the president of the hospital needs summary data about the care centres. For each care centre, s/he needs to know the number of nurses holding an RN certificate, as well as their total and average salaries. Does the following view answer the president's request? If not, write the correct view that will satisfy the president's request. (7 marks) a. b. c. d. CREATE VIEW NURSE SUMMARY (D, C, TOTAL_S, AVERAGE S) AS SELECT cid, COUNT ("), SUM (salary), AVG (salary) FROM Care_centres, Nurses WHERE nurse_charge_id nid and certificate_type like 'RN' GROUP BY cid

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

3. Identify appropriate uses of interaction analysis.

Answered: 1 week ago