Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Departmental Salary Bands | Advanced CASE WHEN Logic
Mastering CASE WHEN in SQL

bookChallenge: Departmental Salary Bands

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 3
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Departmental Salary Bands

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 3
single

single

some-alt