We have an app that helps people find other basketball players to play with. I have been tasked to find out the average time between each joiner of a game For example, Game 2445, one user joined, then another, then another. I want to find out the time frame between each of these joiners.
The game_users table has the following format
game_id | user_id | active | created_at
1234 |3455 | 1 | 2020-01-26 05:18:18
1234 |5673 | 1 |2020-02-16 04:16:15
1234 |2344 | 1 |2020-02-22 18:59:55
Created_at here refers to the time a user joined the game
How can I find out the average time it takes a user to join a game?