jeniferfleurant icon

mereenfant by month

jeniferfleurant | PRO | 09/07/18 07:00:41 PM UTC | 0 ⭐ | 255 👁️ | Never ⏰ | []
MySQL |

400 B

|

None

|

0 👍

/

0 👎

select concat(mother_city_code,'/',mother_hospital_code) as hospital, count(id_patient) as nbr, concat(month(infant_dob),'-',year(infant_dob)) as month_year_dob
from testing_mereenfant 
where infant_dob between '2017-08-01' and '2018-08-31'
GROUP BY concat(month(infant_dob),'-',year(infant_dob)), concat(mother_city_code,'/',mother_hospital_code)
order by concat(mother_city_code,'/',mother_hospital_code)

Comments