Challenge: Departmental Salary Bands
Task
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'ifsalaryis greater than or equal to 90000. - Assign
'Mid'ifsalaryis between 60000 (inclusive) and 90000 (exclusive). - Assign
'Junior'ifsalaryis less than 60000.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: Departmental Salary Bands
Swipe to show menu
Task
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'ifsalaryis greater than or equal to 90000. - Assign
'Mid'ifsalaryis between 60000 (inclusive) and 90000 (exclusive). - Assign
'Junior'ifsalaryis less than 60000.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 3
single