Question: Create a view named PoorPat that contains every patient who has prescribed the most drug. The view contains patno and name (patient name) and tally

Create a view named PoorPat that contains every patient who has prescribed the most drug. The view contains patno and name (patient name) and tally (the number of drug prescriptions).

Given the following 7 relations:

Patient (patno, name, add, ssno, driverno)

Staff (staffno, name, add, ssno driverno)

Doctor (docno, name, add, ssno, driverno)

Admission (roomno, patno, startdate, enddate, staffno)

Room (roomno, type, fee)

Drug (drugno, drugname, drugsalesprice, drugprice)

Prescription (prescno, docno, patno, drugno, stardate, enddate)

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a view named PoorPat that contains every patient who has prescribed the most drugs you can ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!