Quick Elevators
I’m at the Renaissance in Seattle for a couple days, stuck on the 14th floor. That’s higher than I normally...
2010-11-07
457 reads
I’m at the Renaissance in Seattle for a couple days, stuck on the 14th floor. That’s higher than I normally...
2010-11-07
457 reads
This Friday Steve Jones asks the question about how you manage large numbers of SQL Server instances.
2010-11-05
217 reads
When I run on the treadmill, I have a TV and DVD player down there and have been watching Star...
2010-11-05
484 reads
Facebook has implemented a new security feature that Steve Jones thinks might work well for SQL Server as well.
2010-11-04
268 reads
When I was doing performance monitoring of servers, I typically struggled with a good way to get the data. In...
2010-11-04
795 reads
If you haven’t looked at Policy Based Management (PBM), and you manage multiple instances, you ought to really look at...
2010-11-03
971 reads
These are some notes and thoughts from sessions and my time at SQL Server Connections/DevConnections in Nov 2010.
Denny Cherry gives...
2010-11-03
1,602 reads
Steve Jones talks about the workplace of the future, and a prediction from the Gartner Group that it will include swarms.
2010-11-03
145 reads
Kim Tripp is a great speaker, with a wealth of knowledge. This session was talking about some of the issues...
2010-11-03
727 reads
It’s once again time for T-SQL Tuesday, the brainchild of Adam Machanic (Blog|Twitter). It’s a monthly blog party, designed to...
2010-11-02
3,016 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