Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement