/* SELECT COUNT(*) FROM Posts WHERE RIGHT(LEFT(CreationDa...

0

Please login or register to vote for this query.

(click on this box to dismiss)

IT Security Meta

Q&A about the site for information security professionals

/*
SELECT COUNT(*)
FROM Posts
WHERE RIGHT(LEFT(CreationDate,11),4) = 2017
*/
SELECT COUNT(*)
FROM Posts
WHERE DATEPART(YYYY, CreationDate) = 2017
/*
SELECT COUNT(*)
From Posts
WHERE CreationDate BETWEEN '2017-01-01 00:00:00' AND '2018-01-01 00:00:00'
*/

Enter Parameters

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