Viewing post 1 (of 1 total)
WITH months(MonthNumber) AS
(
SELECT 0
UNION ALL
SELECT MonthNumber+1 FROM months WHERE MonthNumber < 11
)
select datename(month,dateadd(mm,m.MonthNumber,0)),t.val from testing as t...
July 30, 2015 at 10:39 pm
#1816348
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy