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

bookChallenge: Regional Discount Flag

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Regional Discount Flag

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
single

single

some-alt