Saving an Old Hammer
It's funny how life often gives us the buy or fix decision on some many things, and the hard part...
2009-03-11
585 reads
It's funny how life often gives us the buy or fix decision on some many things, and the hard part...
2009-03-11
585 reads
We’re on Twitter as @SQLServerCentrl. We couldn’t fit the whole name in there given the limitations of Twitter, but feel...
2009-03-11
366 reads
What do MVPs get to do and see at the MVP Summit? Well most of it is under NDA, so...
2009-03-11
479 reads
Fundamentally as I get older, I think more and more men are pigs. There is definitely something wrong with them,...
2009-03-11
2,004 reads
I went to get new business cards from VistaPrint recently. There are lots of choices and it took longer than...
2009-03-10
623 reads
SQL Server allows nesting of Transactions –in a sense. In truth, there is only one Transaction, with each ‘nested transaction’...
2009-03-10
790 reads
This month there were 3 security bulletins released and 1 re-released:
Microsoft Security Bulletin Summary for March 2009
First, let's tackle the...
2009-03-10
1,203 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-03-10
583 reads
Kind of funny. I saw this on Twitter the other day from @DanNunan and then someone sent it to me...
2009-03-10
767 reads
Those who know me personally know that I grow my hair out to donate for kids. I have donated a...
2009-03-09
1,015 reads
By Steve Jones
This month we have a new host, Meagan Longoria, who graciously agreed to help...
By Steve Jones
I’m at the UK Redgate office today, meeting with senior leaders in all areas...
Optimizing Azure SQL Database performance often begins with identifying the most resource-intensive queries. Understanding...
I’ve been learning more about the google knowledge panel and it seems like one...
I’m currently researching the best wireless credit card terminal for a growing business and...
Comments posted to this topic are about the item Creating a JSON Document IV
I have this data in a table called dbo.NFLTeams
TeamID TeamName City YearEstablished ------ -------- ---- --------------- 1 Cowboys Dallas 1960 2 Eagles Philadelphia 1933 3 Packers Green Bay 1919 4 Chiefs Kansas City 1960 5 49ers San Francisco 1946 6 Broncos Denver 1960 7 Seahawks Seattle 1976 8 Patriots New England 1960If I run this code, how many rows are returned?
SELECT YearEstablished, json_objectagg(city : TeamName) FROM dbo.NFLTeams GROUP BY YearEstablished;See possible answers