Why Haven’t You Changed Everything?
The first in what I hope will be many regular reports on what I’m doing on the PASS board.
To answer...
2014-10-17
601 reads
The first in what I hope will be many regular reports on what I’m doing on the PASS board.
To answer...
2014-10-17
601 reads
I have a pre-con coming up at the PASS Summit. You can read about it here. I named it “Query...
2014-10-16
677 reads
The results are in and it seems that I’ve been elected to a place on the PASS Board.
Thank you.
I will...
2014-10-15
490 reads
I saw a whole bunch of great sessions last month. I was all over the place from Las Vegas to...
2014-10-09
547 reads
Ever been in a fight? Ever been in one that’s not completely going your way? I’ve done this and seen...
2014-10-02
464 reads
I am putting up an abnormal Saturday morning blog post in support of the actions taken by the PASS Board...
2014-09-27
592 reads
While I was at the VMWare HQ getting some amazing training a few weeks ago, we had the opportunity to...
2014-09-26
660 reads
Having very recently gone through the nomination process for the PASS Board, I thought I would share a few things...
2014-09-24
496 reads
The latest update to my book, SQL Server Query Performance Tuning was released last week. This is the fourth edition...
2014-09-23
770 reads
The whole idea behind PASS is to build a community of people who can assist each other in their daily...
2014-09-22
555 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