Question

IlIness Diagnosis Illness Code Illness Desc Department Pres No Patient N0 Medication Code Dosage Physician JD Last Name Patient-No ness Code Tel Extensian Specialty Assignment Paticnt Medication FnysicianJD Patient No Role patient No Last Name First Name Age Gentder Medicatian Cade On Hand On Order Unit Cost8. List the names of doctors who have no patients. [Use NOT IN query]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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.

Add a comment
Know the answer?
Add Answer to:
8. List the names of doctors who have no patients. [Use NOT IN query] IlIness Diagnosis...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT