2016-08-17
1,254 reads
2016-08-17
1,254 reads
2016-08-12
1,233 reads
2016-08-05
1,430 reads
2016-08-04
1,336 reads
2016-07-25
1,573 reads
2016-07-21
1,616 reads
2016-07-19
1,319 reads
2016-07-15
1,383 reads
The COUNT function is among the most used functions in the T-SQL codes. Even though COUNT is easy to use, it should be used carefully because it could often not return the desired result. For the big tables, the counting of the rows could cause blocking as well as take some more time.
2018-02-09 (first published: 2016-07-12)
10,981 reads
2016-06-03
1,747 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...
Telp/WA.0821°3111°179 Jl. Dewi Sartika No.189, RT.1/RW.5, Wil, Kec. Kramat jati, Kota Jakarta Timur, Daerah...
Telp/WA.0821°3111°179 Jl. KH. Hasyim Ashari Km. 1,5 Blok C-D, RT.002/RW.003, Poris Plawad Indah, Kec....
We suffered a SPAM attack from May 1-6, which unfortunately corresponded with time off...
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