Viewing 3 posts - 1 through 3 (of 3 total)
Thanks for good article!
Haven't seen "_(dt_year)" before?
How is the underscore here working?
SELECT dt, dt_year
FROM (VALUES (GetDate())) cur(dt)
CROSS APPLY (SELECT YEAR(cur.dt)) _(dt_year)
June 10, 2016 at 3:53 am
#1884320
Like to have a book! 😀
SELECT FirstName,LastName,
ROW_NUMBER() over (order by FirstName) as 'Row per FirstName',
RANK()...
December 5, 2013 at 7:19 am
#1671084
December 5, 2013 at 7:17 am
#1671082