Friend of Redgate 2020
Last week I was excited to receive an email from Redgate notifying me that I have been renewed for another year as a Friend of Redgate. Our shop has...
2020-02-18
19 reads
Last week I was excited to receive an email from Redgate notifying me that I have been renewed for another year as a Friend of Redgate. Our shop has...
2020-02-18
19 reads
Hello, it’s amazing to me how fast the past couple of years have gone by as I’ve served on the PASS Board. It has been a journey that has...
2019-11-02
17 reads
This month Alex Yates (B|T) is hosting T-SQL Tuesday which is a monthly blog party started by Adam Machanic (B|T) and co-ordinated by Steve Jones (B|T) The challenge that...
2019-10-08
80 reads
The crew at Redgate has deemed me worthy enough to be in their Friend of Redgate program for another year....
2019-02-12
103 reads
SQL Saturday Louisville is less than a week away!! A lot of hard work has gone into putting on this...
2018-07-16
172 reads
What needs to change? The challenge to explore is are there things in your current day to day that needs...
2018-04-26
511 reads
I’ve been wanting to share a little bit about Matt’s story for a while now and this past week I...
2018-03-29
888 reads
I recently went to our local pharmacy to pick up some prescriptions. There was one for my boy and one...
2017-12-19
328 reads
It is easy for me to fall into the trap of the “who” versus the “what”. If we are not...
2017-11-30 (first published: 2017-11-20)
1,291 reads
I was intrigued by this month’s T-SQL Tuesday topic presented by Ewald Cress (b|t) “Folks Who Have Made a Difference”....
2017-11-14
333 reads
By Brian Kelley
I will be leading an in-person Certified Information Systems Auditor (CISA) exam prep class...
EightKB is back again for 2026! The biggest online SQL Server internals conference is...
By HeyMo0sh
Working in DevOps long enough teaches you two universal truths: That’s exactly why I...
Hi all, I just started using VS Code to work with DB projects. I...
Comments posted to this topic are about the item Fun with JSON II
Comments posted to this topic are about the item Changing Data Types
I have some data in a table:
CREATE TABLE #test_data
(
id INT PRIMARY KEY,
name VARCHAR(100),
birth_date DATE
);
-- Step 2: Insert rows
INSERT INTO #test_data
VALUES
(1, 'Olivia', '2025-01-05'),
(2, 'Emma', '2025-03-02'),
(3, 'Liam', '2025-11-15'),
(4, 'Noah', '2025-12-22');
If I run this query, how many rows are returned?
SELECT t1.[key] AS row,
t2.*
FROM OPENJSON(
(
SELECT t.* FROM #test_data AS t FOR JSON PATH
)
) t1
CROSS APPLY OPENJSON(t1.value) t2; See possible answers