skip to Main Content

Mysql – is't right in classic models find customers that have orderd most. I don't find customers that have ordered the same quantity

select productline, customerName, totale from( SELECT productLines.productline, customers.customerName, sum(quantityOrdered) as totale from customers, orders, productlines, products, orderdetails WHERE customers.customerNumber = orders.customerNumber and orderdetails.orderNumber= orders.orderNumber and orderdetails.productCode = products.productCode and productlines.productLine= products.productLine GROUP by productlines.productline, customers.customerName order by sum(quantityOrdered) desc )…

VIEW QUESTION
Back To Top
Search