Ver originalSELECT t1.[#Cliente], t1.monto, t1. fechaFROM compras t1INNER JOIN ( SELECT [#Cliente], MAX(monto) [monto_max] FROM compras GROUP BY [#Cliente]) t2 ON t1.[#Cliente]=t2.[#Cliente] AND t1.monto=t2.monto_max