Friday Reading 2017-02-03
2017 is trundling along now, this week I’ve been reading…
The GitLab incident report
We’ve all had that moment of “what did...
2017-02-03
321 reads
2017 is trundling along now, this week I’ve been reading…
The GitLab incident report
We’ve all had that moment of “what did...
2017-02-03
321 reads
I recently talked with the guys over at SQL Data Partners on their podcast about SQL Server and containers. It...
2017-02-10 (first published: 2017-02-01)
1,907 reads
Wow, what a week last week was.
The biggest thing that happened was that I got a session at SQL Saturday...
2017-01-30
565 reads
Is it really still January? It seems like this month is dragging on a bit. Anyway, this week I’ve been...
2017-01-27
393 reads
SQL Server on Linux has been out for a bit now and I’ve played around a little (see here) but...
2017-01-30 (first published: 2017-01-25)
2,094 reads
I like to think of myself as a fairly hardworking, motivated person. However I recently met someone who regularly gets...
2017-01-23
303 reads
Been an interesting week! My site has had the most views ever (so chuffed) and during all that I’ve been...
2017-01-20
519 reads
Last week I published this post about something a colleague noticed when playing around with a SQL Server instance running...
2017-01-20 (first published: 2017-01-17)
2,869 reads
I’ve been a scribbler for as long as I can remember, in fact I’m not sure that I write everything...
2017-01-16
338 reads
Ahh, is it really Friday the 13th?!! So before Jason gets me, I’ll be reading…
A whole day of PowerShell & SQL
Join...
2017-01-13
337 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