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
セクション 1.  5
single

single

bookChallenge: Price Tier Assignment

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

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

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt