I want to use DISTINCT
and TOP
in the same query. I tried
SELECT DISTINCT TOP 10 * FROM TableA
but I still have a duplicate personID
, so I tought to do:
SELECT DISTINCT (personID) TOP 10 * FROM TableA
But here the syntax is wrong. How do I do it correctly?