Skip to content

Instantly share code, notes, and snippets.

@ilhamije
Created April 26, 2020 03:14
Show Gist options
  • Save ilhamije/da9c7903bca50753b995d4b53f6c7d5d to your computer and use it in GitHub Desktop.
Save ilhamije/da9c7903bca50753b995d4b53f6c7d5d to your computer and use it in GitHub Desktop.
JDS-ilham-DE-SQL-1
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