Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Top 3 Customers | Advanced SQL for Data Analysis
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Data Analysis

bookChallenge: Top 3 Customers

Uppgift

Swipe to start coding

Write a query to find the top 3 customers by total quantity purchased. Use a window function to rank customers by the sum of their purchased quantities.

  • Calculate the total quantity purchased for each customer.
  • Rank customers based on their total quantity purchased, with the highest quantity receiving rank 1.
  • Select only the top 3 customers according to this ranking.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 4
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Top 3 Customers

Svep för att visa menyn

Uppgift

Swipe to start coding

Write a query to find the top 3 customers by total quantity purchased. Use a window function to rank customers by the sum of their purchased quantities.

  • Calculate the total quantity purchased for each customer.
  • Rank customers based on their total quantity purchased, with the highest quantity receiving rank 1.
  • Select only the top 3 customers according to this ranking.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 4
single

single

some-alt