Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 24. október 2026

Rozdiely pre phpWebLogAnalyzer/sql/queries/mysql.sql medzi verziami 1.1 a 1.2

verzia 1.1, 2002/05/26 17:16:04 verzia 1.2, 2002/06/16 10:19:05
Riadok 26  select date_format(datetime, '%Y-%m') as
Riadok 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:
Odstranené z verzie1.1  
zmenené riadky
  Pridané vo verzii1.2

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok