Ver originalSELECT TOP 10 COUNT(Venta) [CONTEO_VENTAS], T1.RFC, T1.NOMBREFROM [Tabla 1] T1INNER JOIN [Tabla 2] T2 ON T1.RFC = T2.RFCGROUP BY T1.RFC, T1.NOMBREORDER BY COUNT(Venta) DESC