0
I have the following tables:
tb_agenda
id_agendaid_medicdatehour
tb_patient
id_patientpatient name
tb_medic
id_medicdoctor’s name
tb_scheduling
id_schedulingid_agendaid_patient
I make the following query
select * from tb_agenda as a left join tb_agendamento as b on (a.id_agenda=b.id_agenda)
I would like to return to me the following fields: id_agendamento, hora, nome_medico, nome_ paciente
it returns me the name of tb_agenda , but the schedule table only returns me the id I wanted the names . because in tb_scheduling I have key fk id_patient I wanted her to return me with field_patient . when I do left Join
– Sergio Silva
I can’t explain well , but I wanted to display the doctor’s schedules in the schedule table and the patient’s schedule in the schedule table it was viewed in the schedule table grid I use this select * from tb_schedule as a left Join tb_schedule as b on (a. id_agenda=b. id_agenda)
– Sergio Silva
thank you worked!!!! thank you very much I will put hands to work now :)
– Sergio Silva