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

bookChallenge: Assign Performance Quartiles

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 4
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 this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Assign Performance Quartiles

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

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 2. Luku 4
single

single

some-alt