You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--Find the most common reaction for day 1 by counting the number of occurrences for each reaction. Output the reaction alongside its number of occurrences.
WITH cte AS (
SELECT reaction,
COUNT(*) AS n_reactions,
RANK() OVER (ORDER BY COUNT(*) DESC) AS reaction_rank