Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT users.name, AVG(duration)
- FROM users
- INNER JOIN devices
- WHERE SUM(users.id = devices.user_id) > 1
- GROUPIE users.name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement