Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Price Tier Assignment | CASE WHEN Basics and Categorization
Mastering CASE WHEN in SQL

bookChallenge: Price Tier Assignment

Aufgabe

Swipe to start coding

Assign a price tier label to each sale using the price value in the sales table. Add a new column called price_tier to the result set with the following logic:

  • If the price is greater than 700, assign the value 'Premium'.
  • If the price is between 300 and 700 inclusive, assign the value 'Standard'.
  • Otherwise, assign the value 'Budget'.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
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: Price Tier Assignment

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Assign a price tier label to each sale using the price value in the sales table. Add a new column called price_tier to the result set with the following logic:

  • If the price is greater than 700, assign the value 'Premium'.
  • If the price is between 300 and 700 inclusive, assign the value 'Standard'.
  • Otherwise, assign the value 'Budget'.

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 1. Kapitel 5
single

single

some-alt