Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Monthly Retention Rate Calculation | Advanced Window Function Applications
Window Functions in SQL

bookChallenge: Monthly Retention Rate Calculation

Tarefa

Swipe to start coding

Write a query to calculate the percentage of employees from each hire (signup) month who received a performance review in each subsequent month.

  • For each employee, identify their hire month as the cohort (signup_month).
  • For each performance review, identify the month of the review as activity_month.
  • For each combination of signup_month and activity_month, calculate the percentage of employees from that signup_month cohort who had at least one performance review in that activity_month.
  • Express the percentage as a value between 0 and 100 with decimal precision.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 6
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 that in simpler terms?

What are the main benefits of this approach?

Are there any common mistakes to avoid with this?

close

bookChallenge: Monthly Retention Rate Calculation

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a query to calculate the percentage of employees from each hire (signup) month who received a performance review in each subsequent month.

  • For each employee, identify their hire month as the cohort (signup_month).
  • For each performance review, identify the month of the review as activity_month.
  • For each combination of signup_month and activity_month, calculate the percentage of employees from that signup_month cohort who had at least one performance review in that activity_month.
  • Express the percentage as a value between 0 and 100 with decimal precision.

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 3. Capítulo 6
single

single

some-alt