Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Churn Detection | Retention and Churn Analysis
SQL for Product Analysts

bookChallenge: Churn Detection

Tarefa

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_id containing 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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 4
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Churn Detection

Deslize para mostrar o menu

Tarefa

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_id containing 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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 4
single

single

some-alt