Hi,
I'm again in the troubles
with this query I get the number of the users group by birthdayPHP Code:SELECT A.domain_id, U.birthday AS field, DATE( access_start_datetime ) AS DATE, COUNT( A.id ) AS value
FROM stats_access A
JOIN users U ON U.id = A.fb_id
GROUP BY DATE( A.access_start_datetime ) , U.birthday, A.domain_id
with this query I get the number of the users group by genderPHP Code:SELECT A.domain_id, U.gender as field, DATE(access_start_datetime) as date, COUNT(A.id) as value
FROM stats_access A
JOIN users U ON U.id = A.fb_id
GROUP BY DATE(A.access_start_datetime), U.gender, A.domain_id;
but how is the query to get the number group by age range and gender
like
17-25 (male 10,female 5)
25-35 (male 5,female 10)
and so on
A big thanks in advance![]()




Reply With Quote






Bookmarks