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; |
Platon Group <platon@platon.org> http://platon.org/
|
|