Challenge: Calculate Key Business Metrics
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 2
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 5.56
Challenge: Calculate Key Business Metrics
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 2
single