Write a query in SQL to obtain the name of the patients with their physicians by whom they got their preliminary treatement
- برمجة سي كيو ال sql
- 2021-09-06
- mhanasmh00489829403
الأجوبة
SELECT t.name AS "Patient",
t.address AS "Address",
p.name AS "Physician"
FROM patient t
JOIN physician p ON t.pcp=p.employeeid;
Sample Output:
Patient | Address | Physician -------------------+--------------------+------------------ John Smith | 42 Foobar Lane | John Dorian Grace Ritchie | 37 Snafu Drive | Elliot Reid Random J. Patient | 101 Omgbbq Street | Elliot Reid Dennis Doe | 1100 Foobaz Avenue | Christopher Turk (4 rows)
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال