I am using PostgreSQL and have a table as shown in the image. app_users
I need to calculate the average number of actions per session (a session counts as the actions