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

bookChallenge: Monthly Retention Rate Calculation

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 6
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

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

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 6
single

single

some-alt