SELECT Users.Id AS [User Link], COUNT(Users.Id) as "Num r...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy Meta

Q&A about the site for science fiction and fantasy enthusiasts

SELECT
    --ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], 
    Users.Id AS [User Link], 
    --Reputation,
    --Posts.Body,
    COUNT(Users.Id) as "Num respostas",
    SUM(Posts.Score) as "Pontos"
    --Posts.PostTypeId
FROM
    Users INNER JOIN Posts
ON
    Users.Id = Posts.OwnerUserId
WHERE
    LOWER(AboutMe) LIKE LOWER('%UFRN%')
    and
    Posts.PostTypeId = 2
GROUP BY
    Users.Id, Posts.PostTypeId
ORDER BY
    Pontos DESC;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results