Answers for "sql 1 year before date"

SQL
0

complete date is 1 year or not sql server

SELECT
   DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), 0) AS StartOfYear,
   DATEADD(yy, DATEDIFF(yy, 0, GETDATE()) + 1, -1) AS EndOfYear
Posted by: Guest on August-12-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language