Q&A for professional and enthusiast programmers
--Number of question posted by users in a given day --Enter Date in the form: 2012-01-01 SELECT Posts.OwnerUserId, Posts.OwnerUserId AS [User Link], count(distinct Posts.Id) FROM Posts WHERE PostTypeId=1 AND CONVERT(VARCHAR(10),Posts.CreationDate,120) = '##Date##' GROUP BY OwnerUserId ORDER BY count(distinct Posts.Id) DESC