Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational database schema relating to physician treating patients. The primary keys are underlined. The foreign keys are self-explanatory. PHYSICIAN (P_id, Name, Specialty,

Consider the following relational database schema relating to physician treating patients. The primary keys are underlined. The foreign keys are self-explanatory.

PHYSICIAN (P_id, Name, Specialty, Hospital, Address)

TREATS (P_id, Pt_id, Date_last_treated)

PATIENT (Pt_id, Pname, Address, DoB)

Translate each of the following statements into an expression of relational algebra.

(i) Display name of doctors who treated more than 400 patients living in Vellore area. [3 Marks]

(ii) Display name of patients who had been treated by doctors of all specialty. [3 Marks]

(iii) Display name of patients who were never treated by pulmonologist. [2 Marks]

(iv) Display name of patients born after January 31, 1990 and the name and specialty of doctors who treated them. [2 Marks]

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 Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

Question Can a Roth IRA invest in stock of the IRA owners business?

Answered: 1 week ago