Trace Flags in Azure SQL Database
One of the ways that you take more direct control over your SQL Server instances is through the use of...
2015-10-13 (first published: 2015-10-05)
1,219 reads
One of the ways that you take more direct control over your SQL Server instances is through the use of...
2015-10-13 (first published: 2015-10-05)
1,219 reads
This is the second year of Argenis Without Borders and the second year that I’m taking part. Last year we...
2015-10-12
516 reads
Working on my third year of “Speaker of the Month” posts now. The good news, I haven’t run out of...
2015-10-02
474 reads
I created this example several years ago that illustrates how foreign key constraints can help performance. It’s a contrived example....
2015-09-21 (first published: 2015-09-09)
2,683 reads
The Nominations Committee has done their job and the final report has been published.
Good luck to everyone running. Thank you...
2015-09-14
472 reads
Feast or famine.
The last several months I just haven’t seen that many speakers, let alone that many community speakers. Then,...
2015-09-04
455 reads
A lot of times you’ll hear how people are experiencing sudden, intermittent, poor performance on a query, bad parameter sniffing...
2015-09-02 (first published: 2015-08-24)
1,584 reads
I recently spent two days consulting with a company on their database development and deployment processes. They are a small, capable, team...
2015-08-19
756 reads
Does generating an Estimated Plan cause that plan to be loaded into the plan cache?
No.
What? Still here? You want more?...
2015-08-18 (first published: 2015-08-10)
1,781 reads
I was actually travelling for most of July and some of that was on holiday with the family, the real...
2015-08-13
587 reads
By HeyMo0sh
Working in DevOps long enough teaches you two universal truths: That’s exactly why I...
By Steve Jones
Finding duplicates was an interview question for me years ago, and I’ve never forgotten...
By HeyMo0sh
Over time, I’ve realised that one of the hardest parts of cloud management isn’t...
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
Comments posted to this topic are about the item Answering Questions On Dropped Columns
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