Friday Reading 2017-06-16
Been looking forward to this weekend for a while now as it’s SQLSaturday Dublin tomorrow. I did a lightening talk...
2017-06-16
322 reads
Been looking forward to this weekend for a while now as it’s SQLSaturday Dublin tomorrow. I did a lightening talk...
2017-06-16
322 reads
A question that regularly comes up when I talk about containers is, “can you specify where the containers/images live on...
2017-06-22 (first published: 2017-06-14)
1,351 reads
Morning all, busy week last week as I was lucky enough to have my session on SQL Server & Containers in...
2017-06-12
280 reads
Exciting day today as I’m presenting my first webinar on SQL Server & Containers in the GroupBy June conference! There’s a...
2017-06-09
449 reads
Back to some core SQL this week and one of my favourite features, extended events.
Introduced in SQL Server 2008...
2017-06-07
5,980 reads
Having a lab environment is an absolute must for any IT professional. You need somewhere that you can test out...
2017-06-05
272 reads
The weather in Dublin has reverted to type (aka rain) but hopefully we’ll get some sun this weekend! This week...
2017-06-02
439 reads
Bit of a powershell themed post this week as I haven’t had that much time to research so this one...
2017-06-13 (first published: 2017-05-31)
1,171 reads
I’ve always said that this blog is my way of giving back to the SQL Server community but there is...
2017-05-29
336 reads
The weather in Dublin is absolutely gorgeous at the moment so I’m not planning on spending much time inside this...
2017-05-26
406 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