Monday Coffee: Follow the instructions
Last week I was working on an upgrade and ran into a few issues. Whilst waiting for the company’s support...
2017-08-28
301 reads
Last week I was working on an upgrade and ran into a few issues. Whilst waiting for the company’s support...
2017-08-28
301 reads
Great week this week as I’ve been selected to speak at 4 of the SQL Relay events in October! Really...
2017-08-25
319 reads
I posted a couple of messages on twitter over the weekend giving any new bloggers advice that was given to...
2017-08-21
286 reads
One of the best features introduced in SQL Server 2016 was the Query Store. Having the ability to see which...
2017-08-19
532 reads
Cool week, I’ve been selected to present at SQL Saturday Holland & SQL Saturday Denmark this year. September and October are...
2017-08-18
375 reads
Last week I presented my session on SQL Server & Containers for the PASS Virtualization Group and during my prep I...
2017-08-28 (first published: 2017-08-16)
2,935 reads
Nice to be back after a week off. I’ve been writing three posts a week (sometimes more) since the beginning...
2017-08-14
346 reads
It’s a bank holiday weekend here in Ireland so I’m looking forward to having the extra day off. Bought a...
2017-08-04
353 reads
I’ve been getting to grips with Docker SQL Containers on Linux (specifically Ubuntu 16.04) and have found that I’ve been...
2017-08-03
454 reads
One of the new options available in SQL Server 2017 is the ability to specify a filegroup when using SELECT..INTO...
2017-08-22 (first published: 2017-08-02)
3,278 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