Blog Posts

Blog Post

More LINQ Discussion

Steve Jones recently posted an editorial about LINQ and the resulting discussion encapsulates most of the points of view on...

2008-04-24

1,771 reads

Blog Post

Tribute to Jim Gray

Ran across this in the Mar/Apr ACM Queue, http://www.eecs.berkeley.edu/IPRO/JimGrayTribute/ will be held at UC Berkeley on May 31st, 2008. Jim Gray...

2008-04-24

1,358 reads

Blog Post

Desktop or Laptop

Most of that do any time of training or consulting typically use laptops, and they are even reasonably common in...

2008-04-23

1,615 reads

Blogs

The Agent Era: When “How do I…?” Replaces “Where do I click?”

By

After a year away getting to grips with AI and its application across the...

Beware of Generic SQL Server License Keys (What to Use Instead)

By

Beware of Generic SQL Server License Keys (What to Use Instead) ...

On Speaking Well

By

Professor Patrick Winston of MIT used to give a one-hour talk about how to...

Read the latest Blogs

Forums

Creating a JSON Document II

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Creating a JSON Document II

Backing Up Azure Key Vault EKM Key: Stairway to TDE Level 6

By VishnuGupthanSQLPowershellDBA

Comments posted to this topic are about the item Backing Up Azure Key Vault...

Every Database Has Problems

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Every Database Has Problems

Visit the forum

Question of the Day

Creating a JSON Document II

I want to create a JSON document that contains data from this table:

TeamID TeamNameCity         YearEstablished
1      Cowboys  Dallas       1960
2      Eagles   Philadelphia 1933
3      Packers  Green Bay    1919
4      Chiefs   Kansas City  1960
If I run this code, what document(s) is/are returned?
SELECT json_objectagg( n.city : n.TeamName)
FROM dbo.NFLTeams;

See possible answers