Monday Coffee 2017-05-01
Morning all, I know it’s a bank holiday in the UK & Ireland today but some of us still have to...
2017-05-01
273 reads
Morning all, I know it’s a bank holiday in the UK & Ireland today but some of us still have to...
2017-05-01
273 reads
Nearly May! Although it’s been snowing this week in Dublin so summer still appears to be a while off…
Community driven...
2017-04-28
587 reads
Nearly May! Although it’s been snowing this week in Dublin so summer still appears to be a while off…
Community driven...
2017-04-28
518 reads
Last week Microsoft confirmed that the name of SQL vNext will indeed be SQL Server 2017. I was looking through...
2017-05-04 (first published: 2017-04-26)
2,575 reads
Last week Microsoft confirmed that the name of SQL vNext will indeed be SQL Server 2017. I was looking through...
2017-04-26
185 reads
Back after a couple of busy weeks, kinda looking forward to getting back into the old work routine (ah, well...
2017-04-24
316 reads
Back after a couple of busy weeks, kinda looking forward to getting back into the old work routine (ah, well...
2017-04-24
174 reads
Morning all, it’s been a busy week so I haven’t had a chance to write a post. Instead I’ve seen...
2017-04-13
299 reads
Morning all, it’s been a busy week so I haven’t had a chance to write a post. Instead I’ve seen...
2017-04-13
153 reads
So SQLBits is over and I have to say that I really enjoyed attending on the Saturday, hopefully next year...
2017-04-10
288 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