Предполагам, че "първите три" са най-често срещаните три елемента в колоната Експертиза, но това може да се промени, ако не е това, което имате предвид.
WITH T1 AS (
SELECT TOP(3) Expertise, COUNT(*) AS cnt
FROM Expertise
GROUP BY Expertise
ORDER BY cnt DESC
), T2 AS (
SELECT ROW_NUMBER() OVER (ORDER BY cnt DESC) AS rn, Expertise
FROM T1
)
SELECT (SELECT Expertise FROM T2 WHERE rn = 1) + ',' +
(SELECT Expertise FROM T2 WHERE rn = 2) + ',' +
(SELECT Expertise FROM T2 WHERE rn = 3)
Резултат:
dfdf,.NEt,fgfg