Write a query in SQL to find the name of patients and their physicians who does not require any assistance of a nurse
- برمجة سي كيو ال sql
- 2021-09-06
- mhanasmh00489829403
الأجوبة
SELECT t.name AS "Name of the patient",
p.name AS "Name of the physician",
a.examinationroom AS "Room No."
FROM patient t
JOIN appointment a ON a.patient=t.ssn
JOIN physician p ON a.physician=p.employeeid
WHERE a.prepnurse IS NULL;
Sample Output:
Name of the patient | Name of the physician | Room No. ---------------------+-----------------------+---------- John Smith | Christopher Turk | C Dennis Doe | Percival Cox | C (2 rows)
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال