如果想要在去重后选出的数据中选出前三条,则应该将distinct写在top的前面,例如
SELECT DISTINCT TOP 3 USERNAME,PASSWORD FROM USERS WHERE SEX='男'