sql >> Base de Datos >  >> RDS >> Sqlserver

SQL Server 2008:TOP 10 y distintos juntos

Prueba

SELECT TOP 10 distinct MyId FROM sometable;