Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am stumped with the sort piece of this question. I have ORDER BY LastName. Do I need to identify List the first and last

I am stumped with the sort piece of this question. I have ORDER BY LastName. Do I need to identify 

List the first and last names of all physicians together with the first and last names of all their patients. Sort the list by the last name of the physician, and the last name of the patient. Avoid listing duplications of pairs of physicians and patients' names.

 

SELECT FirstName , LastName 

FROM Physician, Patient

WHERE Catergory =  LastName FROM Physician AND Patient

ORDER BY LastName 

image

Clinical Tests TestID Name RequestedClinical Tests ConsultationID TestID 8 Description UnitCost Physician FirstName LastName ID Specialty Phone Salary Date Result 1 Medication ConsultationID MedicationID Dosage DosageUnit Quantity UnitCost 1 Medicine MedicationID Name Indications Contraindications Consultation ConsultationID PhysicianID PatientSSN Date 8 Patient SSN FollowUp ConsultationID Item Diagnosis Treatment FirstName LastName Insurance No DOB

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

Programming With Microsoft Visual Basic 2017

Authors: Diane Zak

8th Edition

1337102121, 9781337517058, 978-1337102124

More Books

Students also viewed these Databases questions

Question

Briefly describe what it is that the Bragg equation relates?

Answered: 1 week ago