Challenge: Custom KPIs with CASE WHEN
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Custom KPIs with CASE WHEN
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 6
single