Challenge: 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?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.55
Challenge: 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
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single