Challenge: Calculate Key Business Metrics
Aufgabe
Swipe to start coding
Write SQL queries to calculate key business metrics using the sales and customers tables. Use aggregation functions to produce the following results:
- Calculate the total revenue by summing the
total_amountcolumn from thesalestable. - Find the average order value by taking the average of the
total_amountcolumn from thesalestable. - Determine the number of unique customers by counting distinct
customer_idvalues in thesalestable.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Großartig!
Completion Rate verbessert auf 5.56
Challenge: Calculate Key Business Metrics
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Write SQL queries to calculate key business metrics using the sales and customers tables. Use aggregation functions to produce the following results:
- Calculate the total revenue by summing the
total_amountcolumn from thesalestable. - Find the average order value by taking the average of the
total_amountcolumn from thesalestable. - Determine the number of unique customers by counting distinct
customer_idvalues in thesalestable.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 2
single