How many posts were created in 2017?


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 count(ID) from Posts
--where CreationDate =(select year(CreationDate)as result_year from Posts where result_year=2017);

SELECT GETDATE() 'CreationDate', DATEPART(year,GETDATE()) 'Year Part';

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results