DAI Practice

0

Please login or register to vote for this query.

(click on this box to dismiss)

Tridion

Q&A for Tridion developers and administrators

WITH topTenUsers AS (
  SELECT TOP 20 OwnerUserId, SUM(Score) AS totalScore
  FROM Posts  
  WHERE (Tags LIKE '%sql%'
    OR Tags LIKE '%python%'
    OR Tags LIKE '%<r>%')
    AND OwnerUserId IS NOT NULL
  GROUP BY OwnerUserId 
  ORDER BY totalScore DESC)
  
SELECT TOP 10 displayname, 
  Concat('https://stackoverflow.com/users/',OwnerUserId) AS profileUrl,
  totalScore
FROM topTenUsers AS tt
  JOIN users AS u
    ON tt.OwnerUserId = u.Id
WHERE displayname IS NOT NULL
ORDER BY totalScore DESC;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results