Twitter, John, Building a Blog and #MEME15
I saw an interesting post this morning care of the micro-blogging/social networking site twitter that really got me thinking about...
2012-01-15
1,459 reads
I saw an interesting post this morning care of the micro-blogging/social networking site twitter that really got me thinking about...
2012-01-15
1,459 reads
Including Missing Values in Data Ranges Without a Lookup Table
Including Missing Data
One of the ways that I learn new things...
2012-01-14
1,703 reads
Yesterday Bill Graziano announced the appointment of two Directors (Kendal Van Dyke and James Rowland-Jones) to fill vacancies on the...
2012-01-14
935 reads
Last FM Wrapper
You know that web project we created? You can completely forget about that for now as this is...
2012-01-14
44 reads
“Bill, are you running SQL R2 on your desktop?”
This seems like a simple enough question, yet I usually cannot get...
2012-01-13
831 reads
Power corrupts.
A famous quote, and it’s one of the the most true quotes I’ve seen in my life. When someone...
2012-01-13
1,280 reads
What is File Group backup?
Backing up a portion of a database, say a File Group is termed as Filegroup...
2012-01-13
488 reads
Gee thanks Jes (blog|twitter). Just what I wanted, a little extra work on a Friday afternoon. I used to like...
2012-01-13
1,433 reads
I have been fortunate the past few months to be working on a HP ProLiant DL980 G7 Server. This is...
2012-01-13
945 reads
Today’s post is a quick one as I am a bit under the cosh.
There are many ways to move database...
2012-01-13
681 reads
I’m hosting a free webinar at MSSQLTips.com at the 19th of December 2024, 6PM...
By Steve Jones
I looked at row_number() in a previous post. Now I want to build on...
Recently I received a cry for help over Teams. The issue was that an...
Given the following table and query, this will return any records(based on message_id) that...
How to merge two tables with unlike fields. I have two table with one...
Hello, First of all, I find it odd/annoying that I can't exclude a Project...
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