Question: ( c ) Consider the following database schema: DOCTOR ( doc no , doctor _ name, specialty ) PATIENT ( pat id , pat name,
c Consider the following database schema:
DOCTOR doc no doctorname, specialty
PATIENT pat id pat name, address, phone, dob
VISIT doc no pat id type, date, diagnosis, charge
The database is kept by a medical group which consists of several physicians.
Each physician has only one specialty. Patient records are shared among the
doctors. For each patient visit, information is stored about the type regular
office, hospital, after hours, house call, etc. a single diagnosis for that visit, and
the charge. The visit is identified by docno patid and date, because a patient
may visit more than one doctor on a particular day. We assume, however, that a
patient never visits the same doctor more than once in a day.
Formulate relational algebra commands for the following queries:
Get a list of all the different specialties the physicians have.
marks
ii Find the names of all the doctors whose specialty is Pediatrics.
marks
iii Find the docno of all doctors who saw patient Mary Adams.
marks
iv Get a list of the patient ids, names and addresses of all patients who
visited Dr Hubert Jones on January
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
