| version 1.4, 2002/04/15 17:51:34 |
version 1.5, 2002/04/28 23:29:01 |
| Line 19 select count(distinct session_id) as c, |
|
| Line 19 select count(distinct session_id) as c, |
|
| |
|
| select month(datetime), count(distinct session_id) from weblog_accesses group by month(datetime); |
select month(datetime), count(distinct session_id) from weblog_accesses group by month(datetime); |
| |
|
| select monthname(datetime), count(distinct session_id) from weblog_accesses group by monthname(datetime); |
select concat(monthname(datetime), ' ', date_format(datetime, '%Y')) as month, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by month order by datetime; |
| |
|
| select date_format(datetime, '%Y-%m'), count(distinct session_id) from weblog_accesses group by date_format(datetime, '%Y-%m'); |
select date_format(datetime, '%Y-%m') as month, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by month order by month; |
| |
|
| |
# 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; |
| |
|
| |
# 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; |
| |
|
| # Statistika pristupov v jednotlive dni |
# Statistika pristupov v jednotlive dni |
| |
|
| select dayofweek(datetime), count(distinct session_id) from weblog_accesses group by dayofweek(datetime); |
select dayofweek(datetime), count(distinct session_id) from weblog_accesses group by dayofweek(datetime); |
| |
|
| select dayname(datetime), count(distinct session_id) from weblog_accesses group by dayname(datetime); |
select dayofweek(datetime) as n, dayname(datetime) as day, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by dayname(datetime) order by n; |
| |
|
| # Statistika v jednotlive dni mesiaca |
# Statistika v jednotlive dni mesiaca |
| # Poznamka Frlo: okolo vyplaty to fici :-) |
# Poznamka Frlo: okolo vyplaty to fici :-) |
| |
|
| select dayofmonth(datetime), count(distinct session_id) as c from weblog_accesses group by dayofmonth(datetime) order by c; |
select dayofmonth(datetime) as day, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by dayofmonth(datetime) order by sessions; |
| |
|
| select dayofmonth(datetime), count(distinct session_id) as c from weblog_accesses group by dayofmonth(datetime) order by c desc; |
|
| |
|
| # Statistika za jednotlive dni |
# Statistika za jednotlive dni |
| ## 10 najslabsich dni |
## 10 najslabsich dni z hladiska sessions |
| |
|
| select date_format(datetime, '%Y-%m-%d') as d, count(distinct session_id) as c from weblog_accesses group by d order by c limit 10; |
select date_format(datetime, '%Y-%m-%d') as day, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by day order by sessions limit 10; |
| |
|
| ## 10 najsilnejsich dni |
## 10 najsilnejsich dni z hladiska sessions |
| |
|
| select date_format(datetime, '%Y-%m-%d') as d, count(distinct session_id) as c from weblog_accesses group by d order by c desc limit 10; |
select date_format(datetime, '%Y-%m-%d') as day, count(distinct session_id) as sessions, count(id) as accesses from weblog_accesses group by day order by sessions DESC limit 10; |
| |
|
| |
# |
| |
# FIXME: notes |
| |
# |
| |
|
| |
# celkovy pocet pristupov pre jednotlive servery |
| |
# IMPORTANT: zla query, pouziva group by podla primarneho indexu, preto funguje |
| |
select weblog_server_names.value as server, count(distinct weblog_accesses.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 group by weblog_server_names.id; |
| |
|
| |
# celkovy pocet pristupov pre jednotlive HTTP hosty |
| |
select weblog_http_hosts.value as server, count(distinct weblog_accesses.session_id) as sessions, count(weblog_accesses.id) as accesses from weblog_accesses, weblog_http_hosts where weblog_accesses.http_host_id = weblog_http_hosts.id group by weblog_http_hosts.id; |
| |
|
| # SYSTEM: session list which have more than one ident |
# SYSTEM: session list which have more than one ident |
| ## replace ident_username_id with some else column to get another infos |
## replace ident_username_id with some else column to get another infos |
| Line 54 select session_id, count(distinct ifnull |
|
| Line 70 select session_id, count(distinct ifnull |
|
| |
|
| select weblog_accesses.id, session_id, datetime, http_host_id hh, remote_addr_id as ra, http_user_agent_id ua_id, weblog_ident_usernames.value from weblog_accesses left join weblog_ident_usernames on weblog_accesses.ident_username_id = weblog_ident_usernames.id where session_id = <SESSION_ID>; |
select weblog_accesses.id, session_id, datetime, http_host_id hh, remote_addr_id as ra, http_user_agent_id ua_id, weblog_ident_usernames.value from weblog_accesses left join weblog_ident_usernames on weblog_accesses.ident_username_id = weblog_ident_usernames.id where session_id = <SESSION_ID>; |
| |
|
| |
##### |
| |
|
| |
Najnavstevovanejsi den za mesiac. |
| |
Najnavstevovanejsia hodina za mesiac. |
| |
Najnavstevovanejsia rubrika. |
| |
#Najnavstevovanejsi clanok za cely cas z Komentarov. |
| |
+ opposite |
| |
|