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

bookChallenge: Employee Bonus Eligibility

Tarefa

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

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Employee Bonus Eligibility

Deslize para mostrar o menu

Tarefa

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

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

some-alt