jeniferfleurant

audit_mere

Jun 9th, 2017
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.28 KB | None | 0 0
  1. select patient_code, id_patient from club_patient
  2. left join club on club_patient.id_club=club.id
  3. left join club_session on club_session.id_club=club.id
  4. left join patient on patient.id=id_patient
  5. where year(date)=2016 and patient_code IS NOT null and club_type=1
  6. group by id_patient
Advertisement
Add Comment
Please, Sign In to add comment