So etwas sollte es tun.
SELECT t.user, t.id, t.stuff
FROM (SELECT user, id, stuff,
ROW_NUMBER() OVER (PARTITION BY user ORDER BY id) AS RowNum
FROM YourTable) t
WHERE t.RowNum <= 5
So etwas sollte es tun.
SELECT t.user, t.id, t.stuff
FROM (SELECT user, id, stuff,
ROW_NUMBER() OVER (PARTITION BY user ORDER BY id) AS RowNum
FROM YourTable) t
WHERE t.RowNum <= 5