coracle/sandbox.sql

13 lines
290 B
MySQL
Raw Normal View History

2023-12-07 22:13:33 +00:00
select * from usage where ident is not null limit 100;
select
count(*) as views,
count(distinct session) as sessions,
count(distinct ident) as users,
date_part('week', created_at) AS week
from usage
--where created_at > now() - interval '120' day
group by week
order by week desc