Ver originalWITH T AS(SELECT *, ROW_NUMBER() OVER(Partition BY Cliente ORDER BY Fecha DESC) NmFROM MiTabla)SELECT *FROM TWHERE Nm=1;