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