This commit is contained in:
mrdjez 2017-03-08 19:42:24 +01:00
parent 2ea7ec976a
commit 4497174786
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
DECLARE @DT_NOW AS DATETIME
SET @DT_NOW = GETDATE()
SELECT @DT_NOW
SELECT YEAR(@DT_NOW) - 1 AS 'old_year'