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/pgsql.sql between version 1.2 and 1.3

version 1.2, 2002/09/11 10:58:50 version 1.3, 2002/09/16 10:33:14
Line 21  select date_trunc('month', TIMESTAMP) as
Line 21  select date_trunc('month', TIMESTAMP) as
 sessions, count(id)as accesses from weblog_accesses group by month order by  sessions, count(id)as accesses from weblog_accesses group by month order by
 month;  month;
   
 -- ??  -- ?
   
 select date_trunc('month', a1.TIMESTAMP) as month1, date_trunc('day',  select date_trunc('month', a1.TIMESTAMP) as month1, date_trunc('day',
 TIMESTAMP) as day 1, count(distinct session_id) as sessions1, count(id) as  TIMESTAMP) as day 1, count(distinct session_id) as sessions1, count(id) as
Line 30  date_trunc('day', TIMESTAMP) = (select d
Line 30  date_trunc('day', TIMESTAMP) = (select d
 from weblog_accesses as a2 where date_trunc('month', a2.TIMESTAMP) = month1  from weblog_accesses as a2 where date_trunc('month', a2.TIMESTAMP) = month1
 group by day2 having count(distinct session_id) = 15 ) order by day;  group by day2 having count(distinct session_id) = 15 ) order by day;
   
 -- ??!  -- ?!
   
 select date_trunc('day', TIMESTAMP) as day from weblog_accesses group by day  select date_trunc('day', TIMESTAMP) as day from weblog_accesses group by day
 having count(distinct session_id) = (select max(count(distinct session_id))  having count(distinct session_id) = (select max(count(distinct session_id))

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

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