/*SELECT Id, Score, CreationDate FROM (SELECT * FROM Post...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

/*SELECT Id, Score, CreationDate
FROM
  (SELECT *
   FROM Posts p
   WHERE YEAR(CreationDate) = 2020
   )AS postsYear2020
WHERE MONTH(CreationDate) = 2*/

SELECT COUNT(*)
FROM Posts
WHERE DATEPART(dw, CreationDate) = 1

Enter Parameters

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