Ver originalSELECT YEAR(f.fecha) anio, SUM(f.totalFactura) suma,c.cliente FROM factura AS f JOIN cliente AS c ON f.clienteID = c.clienteID GROUP BY c.clienteORDER BY suma DESCLIMIT 0,10