Successful Teams: Everyone Performs
By day I'm a DBA. Nights and weekends I'm a junior high youth pastor and Awana commander. I have the...
2010-11-03
1,469 reads
By day I'm a DBA. Nights and weekends I'm a junior high youth pastor and Awana commander. I have the...
2010-11-03
1,469 reads
Last Wednesday I woke up feeling under the weather with a hoarse voice. I wasn't up to doing the presentation...
2010-11-01
706 reads
Self-marketing is not my strong suit. I don't feel very comfortable doing it, but Andy Warren (twitter | blog) suggests that we...
2010-10-29
2,483 reads
Tuesday
PASS Performance Virtual Chapter - Five Fast Fixes for Fatal Flaws - Brent Ozar
Wednesday
SQL Lunch - Data Mining in SQL Server and Power...
2010-10-29
1,813 reads
I woke up this morning about 3 AM with clogged sinuses and a fever. Great. The changing weather patterns that...
2010-10-27
633 reads
I won't say I despise SQL Server Management Studio's (SSMS) display for execution plans, but it's about at that level....
2010-10-27
1,249 reads
With the new securables since SQL Server 2005, Microsoft has advised that we start moving away from the fixed server...
2010-10-26
4,544 reads
Unless James Bond is in the picture, security is usually not a sexy topic. However, we all lament the lack...
2010-10-25
2,059 reads
This coming Wednesday I'll be speaking for SQL Lunch on the topic of Auditing Database Permissions in SQL Server. The abstract for...
2010-10-22
517 reads
Monday
PASS Data Warehousing/BI Virtual Chapter - Applied MDX - Kevin Geoff
Tuesday
PASS Application Development Virtual Chapter - Refactoring SQL Applications - Jeremiah Peschka
Pragmatic Works - Pro...
2010-10-22
863 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