SQL Saturday Advice – Speaker Communication
Recently I was at an event and a speaker wasn’t able to make a session. There was a minor scramble,...
2010-10-14
751 reads
Recently I was at an event and a speaker wasn’t able to make a session. There was a minor scramble,...
2010-10-14
751 reads
First, a reminder that our fourth annual SQLSaturday is this Saturday, October 16, 2010, at Seminole State College in Lake...
2010-10-14
596 reads
SQLSaturday #59 Speaker Interviews Series #3 - Kevin S. Goff
You can catch all the speaker interviews on this upcoming event, on...
2010-10-14
908 reads
You know those guys that work the door at clubs, seperating the wheat from the chaff, culling the herd, Choosing the Slain, sifting...
2010-10-14
713 reads
The volunteers at PASS (especially Mike Walsh) have organized another “Birds of a Feather” lunch event on Tuesday, November 9...
2010-10-13
701 reads
Good administrators work really hard so that they don’t have to work really hard. Well, that’s an oxymoronic statement if...
2010-10-13
803 reads
One thing that I don’t see a lot, but it still happens with people new to SQL Server is the...
2010-10-13
21,790 reads
Missing NumbersToday a developer came up to me and wanted help solving a problem he was running into with a...
2010-10-13
1,056 reads
Please join as at the 2010 global summit for the Professional Association for SQL
Server in Seattle. The conference is the...
2010-10-13
487 reads
The almost final list just posted by Mike Walsh, 50+ MVP’s will each host a lunch table at the PASS...
2010-10-13
541 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