Yes, but JOIN will probably be faster.
SELECT Nurse_no, Nurse.Name, Auxilary_No, (select Name from Patient where agency_nurse_no = Nurse.Nurse_no) as PatientName
FROM Nurse;
I'm not an SQL expert, but I would expect the JOIN operation to be much faster than the subquery, which is likely to be performed on each line.
source
share