First Performance Virtual Chapter Webcast
Thanks to the outstanding efforts of Tim Edwards (twitter | blog), our fearless leader, and the rest of the crew, the PASS...
2010-06-28
893 reads
Thanks to the outstanding efforts of Tim Edwards (twitter | blog), our fearless leader, and the rest of the crew, the PASS...
2010-06-28
893 reads
As the deadline for abstracts to be submitted to the PASS Summit came due, I made the hard decision not...
2010-06-16
643 reads
This is just tragic. Thanks to Brent Ozar (twitter | blog) for posting it.
Idera web site hit by SQL injection attack
The...
2010-06-11
573 reads
As I age in years, I realize more and more how blessed I was to attend The Citadel, the Military...
2010-06-08
1,264 reads
Here are the slides from the SQL Server Auditing Class held on June 2, 2010.
Hour 1 - Attacking SQL Server
Hour 2...
2010-06-03
1,017 reads
This has been on my mind since last week after a conversation with a friend of mine, Bobby Dimmick (twitter)....
2010-05-19
1,188 reads
A friend of mine had been out to the Microsoft Certified Architect site recently and noted that the Infrastructure and...
2010-05-14
1,962 reads
In recent days I've kind of dropped off the map with respect to SQL Server, including with the Security and...
2010-05-11
762 reads
I just got done reading Brent Ozar's post about why folks don't get the telecommuting job they want. It's a...
2010-05-07
3,112 reads
This is a short note to say that the SQL University post will arrive tomorrow. Today we're dealing with the...
2010-04-28
1,439 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...
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
Comments posted to this topic are about the item Answering Questions On Dropped Columns
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