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

bookChallenge: Employee Bonus Eligibility

Tehtävä

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'.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Employee Bonus Eligibility

Pyyhkäise näyttääksesi valikon

Tehtävä

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'.

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 2
single

single

some-alt