Recharging
I was hoping that 4 days in the mountains would be a nice time to recharge. Unfortunately, with my wife...
2010-01-07
445 reads
I was hoping that 4 days in the mountains would be a nice time to recharge. Unfortunately, with my wife...
2010-01-07
445 reads
I used to think that too much data was never a bad thing. That having more information out there is...
2010-01-07
369 reads
Steve Jones says we need to stick together in IT, at least from the perspective of the client. Otherwise we can all look bad as an industry.
2010-01-07
2,172 reads
Steve Jones says we need to stick together in IT, at least from the perspective of the client. Otherwise we can all look bad as an industry.
2010-01-07
2,498 reads
Steve Jones says we need to stick together in IT, at least from the perspective of the client. Otherwise we can all look bad as an industry.
2010-01-07
2,273 reads
I saw someone post a question recently about running out of identity values in an INT column. It happens, it’s...
2010-01-06
531 reads
I saw someone post a question recently about running out of identity values in an INT column. It happens, it’s...
2010-01-06
3,520 reads
We have a lot of administrative tools for SQLServerCentral that are available online. Most of the work I do can...
2010-01-05
399 reads
I’ve had a few people ask me this question. It’s the new year, many people are making New Year’s resolutions,...
2010-01-04
804 reads
I’ve had a few people ask me this question. It’s the new year, many people are making New Year’s resolutions,...
2010-01-04
352 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