Challenge: Calculate Key Business Metrics
Uppgift
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ösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastiskt!
Completion betyg förbättrat till 5.56
Challenge: Calculate Key Business Metrics
Svep för att visa menyn
Uppgift
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ösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
single