SQL University - Capacity Planning Week
I am honored to be a guest lecturer this week for SQL University. There have been some amazing professors helping...
2010-07-26
8,158 reads
I am honored to be a guest lecturer this week for SQL University. There have been some amazing professors helping...
2010-07-26
8,158 reads
It's important to have time to think, but quite often we don't find the time. Steve Jones comments on how he's learned just how valuable this can be.
2010-07-26
350 reads
ROWE stands for a Results Oriented Work Environment. This Friday Steve Jones asks if you'd like to work in one.
2010-07-23
179 reads
One of the new products that Red Gate Software has released recently is SQL Source Control. I saw a demo...
2010-07-23
1,481 reads
I have a few people ask about this recently, so I thought I’d blog about it, and maybe get an...
2010-07-23
1,000 reads
2010-07-23
2,616 reads
Is self service BI a good idea? Some people think so, others don't. Steve Jones talks about one of the issues and why it might actually not be a problem.
2010-07-22
371 reads
The hardest thing, I think, for most new organizers of a SQL Saturday is the fundraising. A few years ago...
2010-07-22
1,096 reads
I keep seeing lots of debate about Android v the iPhone 4. I have friends talking about how cool Windows...
2010-07-21
1,172 reads
One thing I learned years ago in C programming was the elegance of using operators and simplifying expressions. This sometimes...
2010-07-21
733 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