Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Employee Bonus Eligibility | Advanced CASE WHEN Logic
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Mastering CASE WHEN in SQL

bookChallenge: Employee Bonus Eligibility

Compito

Swipe to start coding

You need to determine bonus eligibility for each employee using nested CASE WHEN logic. Add a column named bonus to the result:

  • If both salary is greater than or equal to 80000 and years_at_company is greater than or equal to 5, set bonus to 'High'.
  • If only one of these conditions is met, set bonus to 'Medium'.
  • If neither condition is met, set bonus to 'None'.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Employee Bonus Eligibility

Scorri per mostrare il menu

Compito

Swipe to start coding

You need to determine bonus eligibility for each employee using nested CASE WHEN logic. Add a column named bonus to the result:

  • If both salary is greater than or equal to 80000 and years_at_company is greater than or equal to 5, set bonus to 'High'.
  • If only one of these conditions is met, set bonus to 'Medium'.
  • If neither condition is met, set bonus to 'None'.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2
single

single

some-alt