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

bookChallenge: Departmental Salary Bands

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Departmental Salary Bands

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

some-alt