SQL Saturday #70 - Tomorrow will be here soon!
We are in the final stages of prepping for SQL Saturday #70, here in Columbia, SC. We have right around...
2011-03-18
724 reads
We are in the final stages of prepping for SQL Saturday #70, here in Columbia, SC. We have right around...
2011-03-18
724 reads
A very good question was asked about the SQL Saturday #70 session track, and that's "What courses are best suited...
2011-03-15
856 reads
This came up on Twitter last night and if you're not very strong on networking, this can be really confusing....
2011-03-10
13,416 reads
I follow the blog of Johnny Long (twitter) from time-to-time, especially as he chronicled his work in Uganda. I know...
2011-03-09
806 reads
The Call for Speakers for SQL Saturday #70 - Columbia, SC, ended on February 17, 2011. We wanted to put the...
2011-02-25
1,651 reads
Andy Warren (blog | twitter) recently blogged about wanting input on What Should PASS Be? and I think it's a reasonable...
2011-02-24
1,491 reads
I've been on both sides of the debate with respect to whether or not to install antivirus software on a...
2011-02-24
3,387 reads
Over on the ERC forums, Bill Graziano (blog | twitter) has posted the proposed NomCom selection process. We would really like...
2011-02-23
602 reads
My introductory text to SQL Server, appropriately titled Introduction to SQL Server, is now in print and available for sale. The...
2011-02-22
953 reads
In recent days I've seen folks try to recreate functionality when they had access to code that already did effectively the...
2011-02-21
1,975 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