Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Most engaged users
SELECT first_name, last_name, email, count(*) AS activities_count
FROM users
JOIN activities
ON activities.user_id =
GROUP BY, users.first_name, users.last_name,
HAVING count(*) > 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.