Challenge: Querying Session Data
Uppgift
Swipe to start coding
Write two SQL queries to find the total number of sessions for each user, and also identify users who have more than three sessions.
- Aggregate the
sessionstable byuser_id. - Count the number of sessions for each user.
- Return the user ID and the total session count for each user.
- Identify and return only those users who have more than three sessions.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.17
Challenge: Querying Session Data
Svep för att visa menyn
Uppgift
Swipe to start coding
Write two SQL queries to find the total number of sessions for each user, and also identify users who have more than three sessions.
- Aggregate the
sessionstable byuser_id. - Count the number of sessions for each user.
- Return the user ID and the total session count for each user.
- Identify and return only those users who have more than three sessions.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
single