Created
August 12, 2019 08:44
-
-
Save maxiluckiesgin/728168ca43a793fd36cde437dacbdaa1 to your computer and use it in GitHub Desktop.
Write a query that selects userId and average session duration for each user who has more than one session.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT userid, avg(duration) FROM sessions GROUP BY userid HAVING COUNT(userid) > 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank u