Challenge: Custom KPIs with CASE WHEN
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 6
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 5.56
Challenge: Custom KPIs with CASE WHEN
Swipe um das Menü anzuzeigen
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 6
single