Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Price Tier Assignment | CASE WHEN Basics and Categorization
Mastering CASE WHEN in SQL

bookChallenge: Price Tier Assignment

Завдання

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'.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 5
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Price Tier Assignment

Свайпніть щоб показати меню

Завдання

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'.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 5
single

single

some-alt