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

bookChallenge: Departmental Salary Bands

Tarefa

Swipe to start coding

Write a query that adds a salary_band column to the employees table result set. The salary_band should be assigned as follows:

  • Assign 'Senior' if salary is greater than or equal to 90000.
  • Assign 'Mid' if salary is between 60000 (inclusive) and 90000 (exclusive).
  • Assign 'Junior' if salary is less than 60000.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 3
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: Departmental Salary Bands

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a query that adds a salary_band column to the employees table result set. The salary_band should be assigned as follows:

  • Assign 'Senior' if salary is greater than or equal to 90000.
  • Assign 'Mid' if salary is between 60000 (inclusive) and 90000 (exclusive).
  • Assign 'Junior' if salary is less than 60000.

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

single

some-alt