T-SQL Tuesday #62 - Achieving Healthy SQL with MDW
Today:
Tuesday, January 13, 2015 is the 62nd entry and first T-SQL Tuesday
of the year 2015, and I am honored to...
2018-03-27 (first published: 2015-01-13)
8,739 reads
Today:
Tuesday, January 13, 2015 is the 62nd entry and first T-SQL Tuesday
of the year 2015, and I am honored to...
2018-03-27 (first published: 2015-01-13)
8,739 reads
So, here’s a silly little take on a serious end-user issue where no-one could access the production database.
Got a call...
2017-08-11 (first published: 2014-04-07)
119,708 reads
So, the new industry buzz word is Data Science. Are you a Data Scientist? Do you remember taking that in...
2016-08-23
1,558 reads
Wednesday, August 10, 2016, The next meeting of the Central NJ SQL Server Users Group will be on Wednesday August...
2016-08-09
1,149 reads
Well, today is a busy T-SQL Tuesday no. 79, (it's also Flag Day in the U.S, and also a clerical...
2016-06-14
1,823 reads
Quick post-event follow-up of our very successful SQL Server 2016 NYC Launch Event! We would like to thank ALL our...
2016-06-10
1,388 reads
Presenting the OFFICIAL SQL Server 2016 NYC Launch Event Schedule for Thursday, June 2, 2016, just ONE day after the...
2016-05-31
1,943 reads
In a previous blog, I spoke about the upcoming RTM Launch of SQL Server 2016 - Get Ready! Microsoft is ready...
2016-05-24
1,317 reads
You've been waiting, you've been asking, some begging to know the magic date of when Microsoft's SQL Server 2016 will...
2016-05-06
1,107 reads
By now, all you folks who logged on to watch the ultimate Microsoft Data Driven event, streamed live from New...
2016-03-11
1,245 reads
By Brian Kelley
I am able to head back to Seattle for the PASS Summit this year....
By Brian Kelley
I still have a tendency to talk about all the cons of a proposed...
By Steve Jones
One of the things that many DBAs struggle with is managing space across an...
Comments posted to this topic are about the item The Cloud Security Problem
Comments posted to this topic are about the item Virtualizing AWS data by using...
Comments posted to this topic are about the item Timescale Brings PostgreSQL into the...
I have this data in a SQL Server 2022 table:
player yearid team HR Alex Rodriguez 2012 NYY 18 Alex Rodriguez 2013 NYY 7 Alex Rodriguez 2014 NYY NULL Alex Rodriguez 2015 NYY 12 Alex Rodriguez 2016 NYY 9If I run this code, what are the results returned in the hrgrowth column?
SELECT player , yearid , hr , hr - LAG (hr, 1, 0) IGNORE NULLS OVER (ORDER BY yearid) AS hrgrowth FROM dbo.playerstats;See possible answers