0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/ee/clickhouse/sql/sessions/average_all.py

12 lines
192 B
Python
Raw Normal View History

AVERAGE_SQL = """
SELECT
SUM(total),
day_start
FROM
({null_sql} UNION ALL {sessions})
GROUP BY
day_start
ORDER BY
day_start
"""