2016-01-11
1,741 reads
2016-01-11
1,741 reads
Scalar user defined functions can be costly in more ways than you know. Watch Mickey Stuewe show the hidden costs of using them incorrectly.
2017-06-02 (first published: 2016-01-04)
14,853 reads
Loops are common in application code, but set-based solutions are the way to go with SQL.
2018-02-23 (first published: 2015-12-29)
6,376 reads
2015-12-25
1,711 reads
2015-12-23
1,529 reads
2015-12-22
1,525 reads
2015-12-18
1,603 reads
2015-12-15
1,567 reads
2015-12-08
1,428 reads
2015-12-04
1,684 reads
By Steve Jones
I went to sleep while reading a Kindle book on my phone. I know...
A conversation with Jan Laš, CIO at HOPI, about what deploying a data agent...
It's time for T-SQL Tuesday #198! This month's topic is change detection. The post T-SQL...
Tunjungan Plaza 6, Pakuwon Tower Jl. Embong Malang No.21-31 Level Lower Ground Unit 01,...
BCA KCP Pasar Minggu Center Telpon/wa:0813.7887.595.Jl. Lenteng Agung Raya No.26 E-F, Ps. Minggu, Kota...
Jl. Raya Kendangsari Industri No.2, Kendangsari, Kec. Tenggilis Mejoyo, Surabaya, Jawa Timur 60292
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 TOP 2
json_objectagg('Team' : TeamName)
FROM dbo.NFLTeams;
See possible answers