Challenge: Custom KPIs with CASE WHEN
Task
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_amountfor all orders wheretotal_amountis greater than 500 ashigh_value_sales.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Custom KPIs with CASE WHEN
Swipe to show menu
Task
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_amountfor all orders wheretotal_amountis greater than 500 ashigh_value_sales.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 6
single