I have a situation and I need someone to help me with a query. I have 2 tables, one called User (this saves all the users that log in the system, both doctors and patients) and another Doctor-Patient with 2 fields, one is the id of the patient and the other is that of the corresponding doctor.
What I need is a query that shows me the name (found in the User table) of all the patients of a given doctor (is the one who is currently logged in the system)