Give Back: Donate Your Hair for Children in Need
While this will remain a primarily technical blog, one thing I'm going to try and add is each Saturday I'll...
2008-05-16
738 reads
While this will remain a primarily technical blog, one thing I'm going to try and add is each Saturday I'll...
2008-05-16
738 reads
As I went walking last night, I listened to two podcasts from RunAs Radio of interviews of Michael Manos and...
2008-05-16
1,085 reads
Tuesday, May 27, 2008
Speaker: SQL Server MVP Brian Knight
The Midlands PASS chapter will hold a special meeting on...
2008-05-15
636 reads
I was able this Saturday to head down to Jacksonville and speak at the SQL Saturday there. There were a...
2008-05-07
725 reads
The purpose of The Citadel, the Military College of South Carolina, is to prepare South Carolina's citizen soldiers. It is...
2008-05-02
873 reads
The recent slate of attacks on IIS servers don't seem to be an attack directly against IIS or against SQL...
2008-04-26
2,198 reads
If you're looking for the Charlotte SQL Server User Group web page, the link on the PASS HQ site is...
2008-04-09
591 reads
The Heroes Happen Here launch event for Charlotte, NC is tomorrow. It looks like there are still registration slots open:
Heroes...
2008-04-07
1,008 reads
Red Gate's schema comparison tool, SQL Compare, is in beta for the newest version, SQL Compare 7. You can find...
2008-04-07
1,200 reads
I logged into Safari today to download some chapters I want to be able to review when I'm offline. I...
2008-04-05
1,268 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