Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Assign Performance Quartiles | Ranking and Analytic Window Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Window Functions in SQL

bookChallenge: Assign Performance Quartiles

Uppgift

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 allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 4
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Assign Performance Quartiles

Svep för att visa menyn

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 4
single

single

some-alt