Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Price Tier Assignment | CASE WHEN Basics and Categorization
Practice
Projects
Quizzes & Challenges
Questionários
Challenges
/
Mastering CASE WHEN in SQL

bookChallenge: Price Tier Assignment

Tarefa

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

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Price Tier Assignment

Deslize para mostrar o menu

Tarefa

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

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

some-alt