Hi,
I'm in a doubt is it right this query
PHP Code:
SELECT A.domain_id AS domain_idU.sesso AS fieldNULL AS subfieldCASTA.access_start_datetime AS DATE ) AS DATEAVGTIMESTAMPDIFF
MINUTE A.access_start_datetimeA.access_end_datetime ) ) AS value
FROM stats_access A
JOIN users U ON U
.id A.fb_id
WHERE 
(
A.fb_id IS NOT NULL
)
GROUP BY A.domain_idfieldCASTA.access_start_datetime AS DATE 
to get the avg time on site by gender ?
and how the group like
0-10 minutes
10-20 minutes
20-30 minutes
....