The laptop rebuild continues
Not done yet, but I have been slowly patching and installing software over the last few evenings, stuck at my...
2011-01-07
663 reads
Not done yet, but I have been slowly patching and installing software over the last few evenings, stuck at my...
2011-01-07
663 reads
I toyed with the idea of using the SSD for my main drive, but I’d really like to get the...
2011-01-07
1,062 reads
2011-01-07
2,696 reads
I backed up my machine, copied a bunch of data to both a thumb drive as well as the second...
2011-01-06
753 reads
Do you know what to do in case of a data breach? Steve Jones talks about the importance of having a "runbook" for security that covers the same types of things you might need to know for disaster recovery.
2011-01-05
151 reads
I backed up my machine, copied a bunch of data to both a thumb drive as well as the second...
2011-01-05
899 reads
Unlike for data files, SQL Server does not use multiple files for the transaction log in any way that improves...
2011-01-04
777 reads
Unlike for data files, SQL Server does not use multiple files for the transaction log in any way that improves...
2011-01-04
787 reads
If you can’t cram enough for the test, what’s the thing to do? Slide the test. I realized last night...
2011-01-04
767 reads
If you can’t cram enough for the test, what’s the thing to do? Slide the test. I realized last night...
2011-01-04
647 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