jeniferfleurant icon

Mother/PTME 30-49

jeniferfleurant | PRO | 09/19/17 08:06:17 PM UTC | 0 ⭐ | 220 👁️ | Never ⏰ | []
MySQL |

330 B

|

None

|

0 👍

/

0 👎

select patient_code, first_name, last_name, timestampdiff(year, dob, now()) as age, address, telephone, telephone2, id_patient from tracking_motherbasicinfo
left join patient on patient.id=id_patient
 where
 id_patient in (select id_patient from session) and
 timestampdiff(year, dob, now()) between 30 and 49
 group by patient_code

Comments