Zaktualizuj 'sql/create.sql'

This commit is contained in:
s26453 2019-01-22 20:27:06 +00:00
parent c9e4b03ed5
commit d37da03c51

View File

@ -59,8 +59,8 @@ WHILE @FromDate <= @ToDate
SELECT SELECT
@FromDate as time_bk, @FromDate as time_bk,
convert(nvarchar(10), @FromDate,20) AS time_string, convert(nvarchar(10), @FromDate,20) AS time_string,
MONTH(@FromDate) AS [month],
YEAR(@FromDate) AS [year], YEAR(@FromDate) AS [year],
MONTH(@FromDate) AS [month],
DAY(@FromDate) AS [day], DAY(@FromDate) AS [day],
DATENAME(QUARTER,@FromDate) AS [quarter] DATENAME(QUARTER,@FromDate) AS [quarter]
SET @FromDate = DATEADD(DAY, 1, @FromDate) SET @FromDate = DATEADD(DAY, 1, @FromDate)