SELECT hp_patient.name, hp_ptorders.DrugName, hp_ptorders.Dosage,hp_ptorders.DosageUnitFROM hp_patientLEFT JOIN hp_ptordersON hp_patient.pid=hp_ptorde...
SELECT hp_patient.name, hp_ptorders.DrugName, hp_ptorders.Dosage,hp_ptorders.DosageUnit
FROM hp_patient
LEFT JOIN hp_ptorders
ON hp_patient.pid=hp_ptorders.PtId
ORDER BY hp_patient.name