Mentoring process - How to be a good protégé
I'm reading As Iron Sharpens Iron, which is a classic book on Christian mentoring. Written by Dr. Howard Hendricks and...
2009-12-14
789 reads
I'm reading As Iron Sharpens Iron, which is a classic book on Christian mentoring. Written by Dr. Howard Hendricks and...
2009-12-14
789 reads
Both of my tips are up on MSSQLTips.com on fixed roles. You can find them here:
Understanding SQL Server Fixed Database...
2009-12-14
814 reads
I was scrolling through my professional email as my wife drove me in to work (my car is being looked...
2009-12-11
652 reads
"... but you won't tell me how to fix it." I remember that quote coming out of my mouth when I was...
2009-12-10
794 reads
I had the privilege of writing a guest post on Mike Walsh's blog, entitled:
Conciseness
It's simply about being concise in our...
2009-12-09
779 reads
Cross-Posted from A Goal-Keeping DBA blog:
I'm reading Getting Things Done because of Brent Ozar's excellent blog post, How I Use...
2009-12-07
690 reads
The conversation on local administrators having rights in SQL Server has proven to be interesting and at times entertaining. My...
2009-12-03
2,528 reads
The Midlands of South Carolina will be hosting a Code Camp on January 30, 2009. You can register as an...
2009-11-30
1,697 reads
I'm looking over the comments about DBAs and local Administrator rights and I noticed an interesting trend: no one discussed...
2009-11-25
2,602 reads
I've got a four day weekend thanks to the Thanksgiving holiday here in the United States. After reading Jazz in...
2009-11-24
882 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