Course Solutions Uncategorized (Solved) : Consider Following Relations Patients Pid Name Address Telephone Carecentreid Carecentres Q30693776 . . . .

(Solved) : Consider Following Relations Patients Pid Name Address Telephone Carecentreid Carecentres Q30693776 . . . .

 

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.

d. For some strategic decisions, the president ofthe hospital needs summary data about the care centres. For eachcare centre, s/he needs to know the number of nurses holding an RNcertificate, as well as their total and average salaries. Does thefollowing view answer the president’s request? If not, write thecorrect view that will satisfy the president’s request.

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 2 Output Outputtextbox Displaybutton Clicked 5 Points Private Sub Displaybutton Click Send Q26237079 . . . .(Solved) : 2 Output Outputtextbox Displaybutton Clicked 5 Points Private Sub Displaybutton Click Send Q26237079 . . . .

<br/><img src="https://media.cheggcdn.com/media%2F39b%2F39b2cf86-d508-41da-bc9f-7fe2b88309e4%2Fimage" alt="2. What is the output of OutputTextBox after the DisplayButton is clicked(5 points)? Private Sub DisplayButton Click(sender As System.Object, e As System.EventArgs) Handles DisplayButton.Click Dim A As Integer