How HADR_SYNC_COMMIT waits can wreak havoc
It has been a decade since I have blogged. Or at least it feels like it. Today I would like...
2015-11-25 (first published: 2015-11-17)
4,468 reads
It has been a decade since I have blogged. Or at least it feels like it. Today I would like...
2015-11-25 (first published: 2015-11-17)
4,468 reads
On 25th of February 2012, Curacao hosted its first SQL Saturday event. The event was held at the University of...
2012-03-01
2,320 reads
The New Year is just around the corner. Every year I make a resolution. And every time I fail. That...
2011-12-29
2,285 reads
At our company we have two DBAs to take care of all the databases in the production and QA. It...
2011-12-08
1,479 reads
With the announcement of the official slate for the BoD election for this year, the job of the NomCom is...
2011-11-30
2,547 reads
So far SQL Pass Summit has been great for me. I have had a great time from day one onwards....
2011-10-12
1,743 reads
This is my second trip to Seattle for the annual bash. Last year I was a newbie. I did not...
2011-10-07
1,456 reads
There is an advice out there that says never to mix business with pleasure. It is not true in all...
2011-09-21
2,008 reads
The SQL Pass community summit is just around the corner. There is so little time and so much to do....
2011-09-07
1,387 reads
I was trying to write an article for a long time. Every time I start writing one, I would put...
2011-09-01
1,237 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