Speaker of the Month: June 2015
With my travel schedule, I don’t always get out to events where I can see a community speaker. Sometimes, I...
2015-07-03
576 reads
With my travel schedule, I don’t always get out to events where I can see a community speaker. Sometimes, I...
2015-07-03
576 reads
I know a few people in the SQL Server community who have been involved in Scouting. A couple of them...
2015-06-30
993 reads
When I attend sessions at events, I try to mix it up. I’ll go to a session that, really, I...
2015-06-09
526 reads
No, that’s not a threat. It’s an offer to help out.
Redgate Software is very serious about the efforts we’re putting...
2015-06-01 (first published: 2015-05-18)
1,414 reads
Columnstore indexes are fascinating and really cool. Unfortunately, they’re adding an interesting new wrinkle to an old problem.
What’s the Cost...
2015-06-01
814 reads
I heard about Connected from a show on NPR (Yes, I listen to NPR, why do people keep saying that?)....
2015-05-29 (first published: 2015-05-19)
5,090 reads
I’ve had a busy month on the Board.
You may have seen some tweets going by about our compliance with international...
2015-05-27
542 reads
I would love to see the Database Engine Tuning Advisor (DTA) pulled from the product. Completely. Heck, I feel bad that...
2015-05-26
821 reads
I tend to write my queries using LEFT JOIN. Why? Because logically I see it in my head like this:
Give...
2015-05-20 (first published: 2015-05-11)
7,061 reads
I’m almost done reading the book Connected (will be by the time this is published). It’s fascinating although, at least so...
2015-05-15
505 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