Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Custom KPIs with CASE WHEN | CASE WHEN for Business Logic
SQL for Business Intelligence Analysts

bookChallenge: Custom KPIs with CASE WHEN

Tâche

Swipe to start coding

Write SQL queries to create custom business metrics using CASE WHEN inside aggregation functions.

  • Return the count of orders that have a status of 'Delivered' as completed_orders.
  • Return the sum of total_amount for all orders where total_amount is greater than 500 as high_value_sales.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Custom KPIs with CASE WHEN

Glissez pour afficher le menu

Tâche

Swipe to start coding

Write SQL queries to create custom business metrics using CASE WHEN inside aggregation functions.

  • Return the count of orders that have a status of 'Delivered' as completed_orders.
  • Return the sum of total_amount for all orders where total_amount is greater than 500 as high_value_sales.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 6
single

single

some-alt