✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
SELECT c.CustomerID, MAX(h.TotalDue) AS MaxCompra
FROM Sales.Customer c
LEFT JOIN Sales.SalesOrderHeader h
ON c.CustomerID = h.CustomerID
GROUP BY c.CustomerID
HAVING MAX(h.TotalDue) > 10000;¿Qué ocurre con los clientes que no tienen ningún pedido?