More Nukes
One of the reasons that I did not vote for President Obama was his stance on our energy issues, specifically...
2010-02-01
326 reads
One of the reasons that I did not vote for President Obama was his stance on our energy issues, specifically...
2010-02-01
326 reads
I saw a blog post from my friend Paul Randal recently in which he recounted the books he’d read in...
2010-01-31
1,765 reads
This Friday's poll deals with security. Steve Jones asks how often you might rotate those encryption keys to ensure that your systems are secure.
2010-01-29
150 reads
Arrogance has no place in assessing threats and attempting to build security to mitigate them.
2010-01-28
125 reads
In the end, that was what made the difference. I was typing along one night on my spare Acer and...
2010-01-28
868 reads
I’m not sure how this book got on my radar, but it turned out to be fairly interesting. It’s written...
2010-01-28
811 reads
Identity values are very useful, but there can be misconceptions about the way in which they work. One of the...
2010-01-27
996 reads
I finally ordered a new laptop, a Lenovo W510, that caught my eye. I was thinking the T series 510,...
2010-01-27
937 reads
Is the SAN administrator dying out as a job? Steve Jones comments on an article that suggests it might be.
2010-01-27
190 reads
I don’t know if they’re making them cheaper and shoddier or what, but it seems that I’m going through a...
2010-01-26
906 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