Dates and Times in SQL Server: T-SQL functions to get the current date and time
We have come on quite a journey so far. SQL Server and Azure SQL Database provide date and time data...
2018-04-25
389 reads
We have come on quite a journey so far. SQL Server and Azure SQL Database provide date and time data...
2018-04-25
389 reads
Last time, we began an in-depth look at how time is measured. This post continues our journey. If any of...
2018-04-18
487 reads
Now that we have covered the various date and time data types (see the post from last time) in SQL...
2018-04-11
853 reads
I will be presenting twice at SQLSaturday #710 in Edmonton, on 5 May 2018. You can join me for two...
2018-04-04
282 reads
This post continues our look at date and time data types in SQL Server. SQL Server 2008 introduced new data...
2018-03-28
703 reads
This post continues our look at date and time data types in SQL Server. SQL Server 2008 introduced new data...
2018-03-21
341 reads
This post continues our look at date and time data types in SQL Server. SQL Server 2008 introduced new data...
2018-03-14
758 reads
The future, 100 months from now: It’s Monday, 6 July 2026. It’s been quite a week since SQL Server Update...
2018-03-13
283 reads
This post continues our look at date and time data types in SQL Server. SQL Server 2008 introduced new data...
2018-03-07
398 reads
Last week I spoke about a world wary data type for storing dates and times in a single column, with...
2018-02-28
1,059 reads
By gbargsley
Hello, dear blog reader. Today’s post is coming to you straight from the home...
By Steve Jones
This month I’m thrilled that Steve Hughes is hosting. I’ve read this Data on...
By Steve Jones
One of the things a customer asked recently about Redgate Data Modeler was how...
Comments posted to this topic are about the item Creating a JSON Document I
Comments posted to this topic are about the item Who is Irresponsible?
Comments posted to this topic are about the item Removing TDE
I want to create a JSON document that contains data from this table:
TeamID TeamName City YearEstablished 1 Cowboys Dallas 1960 2 Eagles Philadelphia 1933If I run this code, what is returned?
SELECT json_objectagg('Team' : TeamName)
FROM dbo.NFLTeams;
See possible answers