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)

Android Enthusiasts Meta

Q&A about the site for enthusiasts and power users of the Android operating system

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",
    AVG(Posts.Score) as "Média 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