Challenge: 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_eligibleusing aCASE WHENstatement. - Return
'Yes'indiscount_eligibleif theregionis'East'or'West'. - Return
'No'indiscount_eligiblefor all other regions.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 3
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.17
Challenge: 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_eligibleusing aCASE WHENstatement. - Return
'Yes'indiscount_eligibleif theregionis'East'or'West'. - Return
'No'indiscount_eligiblefor all other regions.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 3
single