Raising a Technology Savvy Daughter
I was introduced to electronics at a very young age. I think I was three when I first started doing...
2009-11-23
711 reads
I was introduced to electronics at a very young age. I think I was three when I first started doing...
2009-11-23
711 reads
This was actually spurred by a post from Ted Krueger (@onpnt), which led to a short, but hearty, discussion on...
2009-11-20
14,009 reads
Every so often I see a post in a forum or on Twitter about the use of xp_cmdshell. Usually it is someone looking for...
2009-11-13
21,109 reads
The other day my wife and I were driving around and noticed that a Little Caesar's location had shown up...
2009-11-10
8,738 reads
I'm enjoying a relaxing Saturday morning and I'm doing a bit of reading on ESPN. I see the article about...
2009-11-07
863 reads
I certainly wish circumstances were different and I would have been able to attend the PASS Summit this week. I...
2009-11-06
732 reads
Given everything that has happened in the last couple of weeks, this is not surprising to those who have kept...
2009-10-31
1,379 reads
Kimberly and I went to the high risk doctor's office this morning for the ultrasound. Unfortunately, they realized very quickly...
2009-10-30
1,918 reads
Welcome back to our last class this term on security in SQL Server here at SQL University. According to the syllabus,...
2009-10-29
2,671 reads
Quite a few folks have commented about my previous post about missing the PASS Summit, whether publicly or in private....
2009-10-29
890 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