You Are Responsible for You
Steve Jones wrote an editorial yesterday called The Poor Soul. It talked about being thrown into a responsibility one didn't...
2011-05-12
735 reads
Steve Jones wrote an editorial yesterday called The Poor Soul. It talked about being thrown into a responsibility one didn't...
2011-05-12
735 reads
Yes, this is absolutely a shameless post for self-promotion. However, since potential attendees get to offer input into what sessions...
2011-05-11
956 reads
Inevitably, even if we work for ourselves, we get frustrated with our workplace. This is true of all aspects of...
2011-05-11
3,031 reads
A little over a week ago I roughed up my back moving sound equipment after a ministry event. I have...
2011-05-10
1,711 reads
I am excited about the SQL Rally event that's coming up next week. However, I won't be there. I've been...
2011-05-05
863 reads
Following Andy Leonard's (blog | twitter) footsteps, here are my PASS Summit submissions. I decided to go a little different this...
2011-05-05
788 reads
I have a love/hate relationship with Outlook. It's the required email client at work and because it interfaces with so...
2011-05-05
2,103 reads
In January 2009, I made the transition back to being a senior DBA. One of the first things my manager...
2011-05-04
2,929 reads
If you read the experts, most folks check their emails too many times during the day. Today, while giving a...
2011-05-03
794 reads
I've been dealing with illness the last few weeks, probably due to the rather heavy pollen season here in South...
2011-04-29
1,543 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