8. List the names of doctors who have no patients. [Use NOT IN query]
We want to find out a doctor who has no patients. This means In the Assignment Table there will be not be any entry for the doctor, but the doctor will have entry in the Physician table.
Query is:
Select Physician_ID
from Physician
where Physician_ID
NOT IN
(Select Physician_ID from Assignment);
This Query will take Physician_ID from the Physician table and subtract the Physicians from the Assignment Table.
8. List the names of doctors who have no patients. [Use NOT IN query] IlIness Diagnosis...