SQLAndy

Blogs

Future IT Roles – Agentic Architect and AI Boom!!

By

These days everything is changing to AI World, IT roles are getting changed and...

PlanTrace: Stop Reading Redshift EXPLAIN Plans. Start Seeing Them

By

PlanTrace: Stop Reading Redshift EXPLAIN Plans. Start Seeing Them Introducing PlanTrace — a free, browser-based...

A Cloud Dependency Failure from Amazon

By

I went to sleep while reading a Kindle book on my phone. I know...

Read the latest Blogs

Forums

BCA KCP Kalimalang Hub.0851•8812•0691

By natejasper1313

BCA KCP Kalimalang Hub.0851•8812•0691 Jl. Inspeksi Kav. PTB Blok A 2 No. 2 C-D,...

BCA KCP Mayestik Telp/WA.0821°3111°179

By himlamthuongthanh

Telp/WA.0821°3111°179 Jl. Kyai Maja No.77, Gunung, Kec. Kby. Baru, Kota Jakarta Selatan, Daerah Khusus...

BCA KCP Ciceri TLP/WA 08216977701

By PFlorenzano-641896

Jl. Jend. Sudirman No.38, Sumurpecung, Kec. Serang, Kota Serang, Banten 42118

Visit the forum

Question of the Day

Creating a JSON Document III

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      1960
If I run this code, how many rows are returned?
SELECT TOP 2 
  json_objectagg('Team' : TeamName)
FROM dbo.NFLTeams;

See possible answers