Blogging at TechEd
I’ll be at TechEd on Monday/Tuesday. Not going to sessions as I don’t have the time to stay there all...
2010-06-07
358 reads
I’ll be at TechEd on Monday/Tuesday. Not going to sessions as I don’t have the time to stay there all...
2010-06-07
358 reads
This week Database Weekly has a lot of performance related posts and Steve Jones notes that those are not of much use unless you know you really do have a performance problem.
2010-06-07
157 reads
You need consistent, reliable data. You want data that you can trust.
This is usually data about your transactions, slowly changing...
2010-06-07
545 reads
This is one of my favorite technologies for SQL Server 2008 R2. This session was from Torsten Grabs, the program...
2010-06-07
2,108 reads
It’s a zoo.
Once again wifi sucks, sitting in the keynote room, unable to join the wireless network and get a...
2010-06-07
353 reads
I didn’t think that multitasking was a big deal for my iPhone when I got it. I’d had it on...
2010-06-04
652 reads
I’m leaving today for SQL Saturday #22 in Pensacola, FL. I’ll be there tonight and tomorrow, leaving Sun morning for...
2010-06-04
356 reads
In Pensacola, the Hampton Inn, and bandwidth sucks. I remember this from last year. Adding a few notes to my...
2010-06-04
348 reads
Today Steve Jones talks about revisiting your design and perhaps thinking about buying another edition of SQL Server to take advantage of some feature.
2010-06-03
124 reads
I found a cool series of scripts from Jeremiah Peschka on getting disk space from SQL Server. They’re useful queries,...
2010-06-03
1,980 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