mysql - Find number of users count in a day who visit the url -
i need query fetch 'number of different users count' in day visit url. structure of table
and try query
select distinct `userid`,`url`, from_unixtime(`time`,'%y-%m-%d') date,count(`userid`) usercount `mdl_log` group from_unixtime(`time`,'%y-%m-%d')
but not work. please me correct query.
use disinct , count together
select count(distinct `userid`) usercount,`url`, from_unixtime(`time`,'%y-%m-%d') date `mdl_log` group from_unixtime(`time`,'%y-%m-%d')
Comments
Post a Comment