DataLemur: Average Post Hiatus Rodrigo Vallejos included in DataLemur 2023-05-16 2023-05-16 33 words One minute 1 2 3 4 5 SELECT user_id, EXTRACT(DAY FROM MAX(post_date) - MIN(post_date)) AS days_between FROM posts WHERE EXTRACT(YEAR FROM post_date) = 2021 GROUP BY user_id HAVING EXTRACT(DAY FROM MAX(post_date) - MIN(post_date)) > 0