Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for phpWebLogAnalyzer/sql/queries/mysql.sql between version 1.1 and 1.2

version 1.1, 2002/05/26 17:16:04 version 1.2, 2002/06/16 10:19:05
Line 26  select date_format(datetime, '%Y-%m') as
Line 26  select date_format(datetime, '%Y-%m') as
 # statistika za jednotlive mesiace pre konkretny server  # statistika za jednotlive mesiace pre konkretny server
 select date_format(datetime, '%Y-%m-%d') as day, count(distinct session_id) as sessions, count(weblog_accesses.id) as accesses from weblog_accesses, weblog_server_names where weblog_accesses.server_name_id = weblog_server_names.id and weblog_server_names.value = 'www.prave-spektrum.sk' group by day order by sessions DESC limit 10;  select date_format(datetime, '%Y-%m-%d') as day, count(distinct session_id) as sessions, count(weblog_accesses.id) as accesses from weblog_accesses, weblog_server_names where weblog_accesses.server_name_id = weblog_server_names.id and weblog_server_names.value = 'www.prave-spektrum.sk' group by day order by sessions DESC limit 10;
   
   # welmi dobra statistika (na rozdiel od tej predchadzajucej, ktorej nerozumiem)
   # replace <SERVER_NAME> with your server name
   
   select concat(monthname(datetime), ' ', date_format(datetime, '%Y')) as month, count(distinct weblog_accesses.session_id) as sessions, count(weblog_accesses.id) as accesses, count(distinct weblog_remote_addrs.value) as IPs from weblog_accesses, weblog_remote_addrs, weblog_server_names where weblog_accesses.server_name_id = weblog_server_names.id and weblog_accesses.remote_addr_id = weblog_remote_addrs.id and weblog_server_names.value = '<SERVER_NAME>' group by month order by datetime;
   
 # Statistika pristupov za jednotlive roky  # Statistika pristupov za jednotlive roky
   
 select date_format(datetime, '%Y') as year, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by year order by year;  select date_format(datetime, '%Y') as year, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by year order by year;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top