Challenge: Churn Detection
Taak
Swipe to start coding
Your goal is to identify users who may have churned by checking their recent login activity.
- Write a SQL query that returns the user IDs of all users who have not logged in within the last 30 days.
- Use the tables 'users' and 'logins' provided in the database.
- The result should be a single column named
user_idcontaining the IDs of these churned users. - Only include users who have not logged in at all in the last 30 days, or who have never logged in.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Geweldig!
Completion tarief verbeterd naar 4.17
Challenge: Churn Detection
Veeg om het menu te tonen
Taak
Swipe to start coding
Your goal is to identify users who may have churned by checking their recent login activity.
- Write a SQL query that returns the user IDs of all users who have not logged in within the last 30 days.
- Use the tables 'users' and 'logins' provided in the database.
- The result should be a single column named
user_idcontaining the IDs of these churned users. - Only include users who have not logged in at all in the last 30 days, or who have never logged in.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 4
single