Monday Coffee 2017-02-27
Ergh, not a fun weekend rugby wise. But anyway…
Last week Microsoft released an image for SQL Server 2016 SP1 Developer...
2017-02-27
589 reads
Ergh, not a fun weekend rugby wise. But anyway…
Last week Microsoft released an image for SQL Server 2016 SP1 Developer...
2017-02-27
589 reads
Wow that week absolutely flew by! Here’s what I’ve been reading…
Seatbelt learning with Uncle Buck
Buck Woody goes through how he...
2017-02-24
327 reads
Continuing on my series in working with Docker on Windows, I noticed that I always open up a remote powershell...
2017-02-22
700 reads
No rugby on last weekend so I didn’t have anything to distract me from working. On another note, my flat...
2017-02-20
253 reads
Is it me or is February dragging? Anyway, mixed in with this crazy week I’ve been reading: –
SQL Server vs...
2017-02-17
341 reads
I’ve been going over some demos for a presentation that I’ll be giving this year and I thought I’d write...
2017-02-15
421 reads
Man, if there was an award for procrastinating I’d definitely be in with a shout for today (I write these...
2017-02-13
306 reads
Fun week, performed some RAM upgrades for my production SQL boxes which for one server, somehow fried its motherboard, hard...
2017-02-10
371 reads
I’ve been playing around with SQL containers on Windows Sever 2016 a lot recently and well, building empty SQL containers...
2017-02-14 (first published: 2017-02-08)
3,326 reads
A lot’s been said about last week’s Gitlab outage so I’m not going to go over the details here but...
2017-02-06
502 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