Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Calculate Key Business Metrics | Aggregations for KPIs
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Business Intelligence Analysts

bookChallenge: 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_amount column from the sales table.
  • Find the average order value by taking the average of the total_amount column from the sales table.
  • Determine the number of unique customers by counting distinct customer_id values in the sales table.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: 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_amount column from the sales table.
  • Find the average order value by taking the average of the total_amount column from the sales table.
  • Determine the number of unique customers by counting distinct customer_id values in the sales table.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

some-alt