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

bookChallenge: 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_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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

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?

close

bookChallenge: 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_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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 2
single

single

some-alt