Tolik rozruchujen v LopuchuLopuch.cz
select date(b.cas),`ipadr`, count(time(b.cas) between "07:00:00" and "15:35:00"), count(time(b.cas) > "15:35:00") FROM hostnames a,`ipup` b WHERE a.ip=b.ip group by 1,2 order by 1,2