Setting the file. One moment.
Skill 103 · Querying PostHog Data
Subchapter 103.12
references/example-person-property-taxonomy.mdMarkdown630 BView on GitHub
Sample values for specific person properties:
SELECT
groupArray(5)(prop),
count(),
prop_index
FROM
(SELECT
DISTINCT prop_index,
toString(prop_value) AS prop
FROM
persons
ARRAY JOIN arrayEnumerate([toString(properties.email), toString(properties.$initial_browser)]) AS prop_index, [toString(properties.email), toString(properties.$initial_browser)] AS prop_value
WHERE
isNotNull(prop_value)
ORDER BY
created_at DESC)
GROUP BY
prop_index
ORDER BY
prop_index ASC
LIMIT 50000