- 2

Write a SQL query to return the top 5 customer names based on the $ amount ordered

assume you have a customer and orders table where a customer can have many tables. assume that the tables have reasonable columns like customerName, customerID, orderCost, etc. I'm pretty new to sql any help is appreciated

23rd Jul 2017, 2:55 AM
cole
1 Resposta
+ 1
SELECT FirstName FROM employees ORDER BY customerorder DESC LIMIT BY 5;
30th Jul 2017, 8:15 PM
Ritveak Dugar
Ritveak Dugar - avatar