Users who voted the most Up Votes during the period

0

Please login or register to vote for this query.

(click on this box to dismiss)

Artificial Intelligence Meta

Q&A about the site for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment

DECLARE @startDate NVARCHAR(250) = ##startDate:string?2022-04-01##;
DECLARE @endDate NVARCHAR(250) = ##endDate:string?2022-04-22##;

SELECT
  u.Id AS [User Link],
  COUNT(*) AS NumberOfUpvotes
FROM  
  Users u
    JOIN Votes v ON v.UserId = u.Id AND VoteTypeId = 2
WHERE
  v.CreationDate BETWEEN @startDate AND @endDate
GROUP BY  
  u.Id
ORDER BY
  2 DESC

Enter Parameters

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