0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/ee/clickhouse/sql/sessions/average_all.py
Eric Duong cecb7510b8
General Reorganization (#1981)
* small tweaks and reorganize session queries

* move all queries to query folder
2020-10-22 07:35:57 -04:00

12 lines
192 B
Python

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