Tabs Out of Control
I was working with a team of developers this week who were having the hardest time finding the keystroke to...
2009-11-03
325 reads
I was working with a team of developers this week who were having the hardest time finding the keystroke to...
2009-11-03
325 reads
We are all facing the challenges of this new economy. There are very few people and industries in the world...
2009-11-03
298 reads
Recently I was working with client and they were discussing the pet peeves of some of the new intellisense features...
2009-11-03
400 reads
Greg emailed me a great question from my week of warehousing webinar the other day. We were discussing disk performance...
2009-11-03
268 reads
How exciting was last week! Some of the top experts in the country all gathered together through support from SQLServerCentral.com,...
2009-11-03
204 reads
I am not about to get into a theoretical discussion of whether certifications will benefit you in your career. I...
2009-10-30
1,446 reads
I can’t wait until Feb 27 when Code Camp is right in my backyard! I just submitted my session for...
2009-10-23
359 reads
Hey there folks. I finally was able to get my persona domain name from a squatter who has been holding...
2009-10-21
390 reads
My presentation and sample files from SQLSaturday in Orlando are now online for you to download. Check them out at...
2009-10-21
386 reads
Have you ever wondered where to go to get good information that will help you in your day to day...
2009-09-09
453 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