Gathering in the Corner - SQLSaturday #14
I'm done with SQLSaturday #14, actually stuck in Pensacola for an extra night, but that's another story.
It was a great...
2009-06-08
593 reads
I'm done with SQLSaturday #14, actually stuck in Pensacola for an extra night, but that's another story.
It was a great...
2009-06-08
593 reads
Microsoft is the largest software company in the world. What does this mean for SQL Server? Steve Jones thinks it's good.
2009-06-08
196 reads
You have a default server instance for SQL Server, you think that your database files grew last night, and you...
2009-06-08
452 reads
Microsoft is the largest software company in the world. What does this mean for SQL Server? Steve Jones thinks it's good.
2009-06-07
821 reads
Microsoft is the largest software company in the world. What does this mean for SQL Server? Steve Jones thinks it's good.
2009-06-07
608 reads
Microsoft is the largest software company in the world. What does this mean for SQL Server? Steve Jones thinks it's good.
2009-06-07
592 reads
I’ve been Twittering about some of these, but I thought I’d condense a few for some fun today. First, a...
2009-06-05
516 reads
Are developers or administrators worth more? Is it easier to get funding for one group or the other? Steve Jones asks the question in today's poll.
2009-06-05
142 reads
I'm happy to announce that SQLServerCentral is sponsoring a track at this year's SQL Connections conference in Las Vegas, Nov 9-12, 2009. We're supplying the speakers, and picking the topics. If all goes well, we should be continuing this...
2009-06-05
1,164 reads
We’re getting closer. Coda is planning on selling a 4 door sedan in CA next year for $45k ($10k tax...
2009-06-04
455 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