Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Assign Performance Quartiles | Ranking and Analytic Window Functions
Window Functions in SQL

bookChallenge: Assign Performance Quartiles

Opgave

Swipe to start coding

Write a query to assign each employee to a performance quartile using NTILE based on their average review score.

  • Calculate the average review score for each employee.
  • Use NTILE(4) to divide employees into four quartiles based on their average review score, with quartile 1 being the highest scores.
  • Return each employee's ID, name, average score, and their assigned performance quartile.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 4
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Assign Performance Quartiles

Stryg for at vise menuen

Opgave

Swipe to start coding

Write a query to assign each employee to a performance quartile using NTILE based on their average review score.

  • Calculate the average review score for each employee.
  • Use NTILE(4) to divide employees into four quartiles based on their average review score, with quartile 1 being the highest scores.
  • Return each employee's ID, name, average score, and their assigned performance quartile.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 4
single

single

some-alt