SELECT T1.*
FROM MyTable T1
WHERE T1.Value In
(SELECT TOP 5 PERCENT T2.Value
FROM MyTable T2
WHERE T2.Month=T1.Month AND T2.Group=T1.Group
ORDER BY T2.Value;)
;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.