Q&A for information security professionals
Select top 500000 Id, CreationDate From Users where DATEPART(Year, CreationDate) >= 2016 and DATEPART(Year, CreationDate) < 2017 order by convert(date, CreationDate)