fix comments

This commit is contained in:
dr0zd
2026-01-31 03:29:26 +07:00
parent eca39dbcee
commit 0433c72828
7 changed files with 16 additions and 32 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
CREATE TABLE users (
CREATE TABLE mdrozdov.users (
user_id Int,
name String,
age Int,
@@ -113,10 +113,10 @@ CREATE TABLE users (
from mdrozdov.events
--3) да, поддерживается, но не обязательно для коммулятивного суммирования строк
--4-6) Сделай WITH recent_events AS (...) — все события за последние 24 часа.
with recent_events AS (
with mdrozdov.recent_events AS (
select *
from mdrozdov.events
where event_time >= '2025-07-18'::DATE - interval '1 day'
where event_time >= toDateTime('2025-07-18') - interval 1 day
), category_list as (
select 'click' as event_type, 'interaction' as category
union all