DAI Practice


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for Tridion developers and administrators

WITH top_ten_users AS (

  SELECT TOP 10 OwnerUserId, SUM(Score) AS total_score
  FROM Posts  
  WHERE (Tags LIKE '%sql%'
    OR Tags LIKE '%python%'
    OR Tags LIKE '%<r>%')
    AND OwnerUserId IS NOT NULL
  GROUP BY OwnerUserId 
  ORDER BY total_score DESC)
SELECT displayname, websiteUrl, tt.*
FROM top_ten_users AS tt
  JOIN users AS u
    ON tt.OwnerUserId = u.Id
ORDER BY total_score DESC

Enter Parameters

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