My score and number of non-CW answers per tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Spanish Language

Q&A for linguists, teachers, students and Spanish language enthusiasts in general wanting to discuss the finer points of the language

select * from
(SELECT
  t.TagName,
  a.Score
FROM Posts a INNER JOIN Posts q ON q.Id=a.ParentId
  INNER JOIN PostTags pt ON q.Id = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
WHERE (a.OwnerUserId=##userid##)
AND (a.CommunityOwnedDate IS NULL)) a
UNION 
(
SELECT
  t.TagName,
  0 as Score
FROM Posts a INNER JOIN Posts q ON q.Id=a.ParentId
  INNER JOIN PostTags pt ON q.Id = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
WHERE (a.OwnerUserId=##userid##)
AND (a.CommunityOwnedDate IS NULL)
)

--GROUP BY t.Tagname   
--ORDER BY SUM(a.Score) DESC

Enter Parameters

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