Advertisement
jeniferfleurant

Mother/PTME 30-49

Sep 19th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.33 KB | None | 0 0
  1. select patient_code, first_name, last_name, timestampdiff(year, dob, now()) as age, address, telephone, telephone2, id_patient from tracking_motherbasicinfo
  2. left join patient on patient.id=id_patient
  3.  where
  4.  id_patient in (select id_patient from session) and
  5.  timestampdiff(year, dob, now()) between 30 and 49
  6.  group by patient_code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement