SQL Server 2008 end of support
2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server...
2018-12-21
377 reads
2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server...
2018-12-21
377 reads
2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server 2008 (and R2) reaches to an end in 2019.
This...
2018-12-21
26 reads
Today I'm getting back to basics, whether you are new or veteran with the database engine you need a tool to get into, write queries, do some monitoring, tuning,...
2018-06-28
758 reads
Today I'm getting back to basics, whether you are new or veteran with the database engine you need a tool...
2018-06-27
1,464 reads
Problem:
Early in the morning I received emails requesting for support as the applications were failing to connect to one of...
2018-06-18 (first published: 2018-06-05)
4,670 reads
Problem:
Early in the morning I received emails requesting for support as the applications were failing to connect to one of the production servers that are configured with Always On,...
2018-06-05
38 reads
This script is from my library and I use it to review what is going on with my transactional replications,...
2018-04-18
421 reads
This script is from my library and I use it to review what is going on with my transactional replications, try to remove statements that didn't get purged for...
2018-04-18
28 reads
SQL Server is now compatible with different Linux distributions, and there is a lot of excitement about it.
How ever one of the main questions when ever you say SQL...
2018-03-01
30 reads
SQL Server is now compatible with different Linux distributions, and there is a lot of excitement about it.How ever one...
2018-02-28
4,182 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