Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Regional Discount Flag | CASE WHEN Basics and Categorization
Mastering CASE WHEN in SQL

bookChallenge: Regional Discount Flag

Tarefa

Swipe to start coding

Write a query that adds a column discount_eligible to the sales table output. The value should be 'Yes' if the region is 'East' or 'West', and 'No' otherwise.

  • Add a column named discount_eligible using a CASE WHEN statement.
  • Return 'Yes' in discount_eligible if the region is 'East' or 'West'.
  • Return 'No' in discount_eligible for all other regions.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 3
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: Regional Discount Flag

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a query that adds a column discount_eligible to the sales table output. The value should be 'Yes' if the region is 'East' or 'West', and 'No' otherwise.

  • Add a column named discount_eligible using a CASE WHEN statement.
  • Return 'Yes' in discount_eligible if the region is 'East' or 'West'.
  • Return 'No' in discount_eligible for all other regions.

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 3
single

single

some-alt