I have two tables Patients and Treatment type. For the past hour ive been trying to make a query to see the treatment type name each patient has had and groups Patient id 1 in one column and 2 in another column but instead of their id it will be their first name and last name.
I have posted an image mockup from excel of what i want the query to do below.
The name of the patients table is patients and the name of the treatment table is treatment_type
idPatients PatientFName PatientLName PatientDOB PatientsCounty PatieritsCity PatientsOccupation Specalist_idSpecialist
1 Roger James 16/05/1992 Hampshire Portsmouth Student 2
2 James Murray 08/02/1960 Middlesex Harrow Business Owner 1
https://i.stack.imgur.com/MKKBd.png
I hope someone can help me.