Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Calculate Key Business Metrics | Aggregations for KPIs
SQL for Business Intelligence Analysts

bookChallenge: Calculate Key Business Metrics

Oppgave

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øsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

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

Sveip for å vise menyen

Oppgave

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øsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

some-alt