Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Apply Business Logic with CASE WHEN | CASE WHEN for Business Logic
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Business Intelligence Analysts

bookChallenge: Apply Business Logic with CASE WHEN

Uppgift

Swipe to start coding

Use CASE WHEN statements to apply business logic for labeling orders and categorizing products.

  • For orders, assign a label of 'High' to each order where total_amount is greater than or equal to 500. Assign a label of 'Standard' to all other orders.
  • For products, assign a label of 'Tech' to each product that belongs to the 'Electronics' category. Assign a label of 'Other' to all other products.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Apply Business Logic with CASE WHEN

Svep för att visa menyn

Uppgift

Swipe to start coding

Use CASE WHEN statements to apply business logic for labeling orders and categorizing products.

  • For orders, assign a label of 'High' to each order where total_amount is greater than or equal to 500. Assign a label of 'Standard' to all other orders.
  • For products, assign a label of 'Tech' to each product that belongs to the 'Electronics' category. Assign a label of 'Other' to all other products.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

some-alt