SQL Saturday Southampton Pre-con
It’s been a while since my last pre-con, in fact it’s been a while since my last SQL Saturday with...
2015-10-01
529 reads
It’s been a while since my last pre-con, in fact it’s been a while since my last SQL Saturday with...
2015-10-01
529 reads
Another year, another set of elections. It’s that time where those who care about their industry and the future of...
2015-09-17
636 reads
Deciding to change jobs can be one of the most difficult decisions you can make. At Dell I was part...
2015-08-07
488 reads
Alerts have been around for as long as I can remember, so some time before breakfast. That probably means you...
2015-05-12
1,149 reads
Like most people I have a bucket list of things to do before I depart for other things. However I...
2015-03-13
796 reads
That’s right I’m cashing in on the “50 Shades” franchise and twisting it to meet my own sordid needs to...
2015-03-03
647 reads
A number of you will have heard of SQLBits before. It’s Europe’s largest conference dedicated to SQL Server. What was...
2015-03-02
625 reads
I first came across the error “(Ctrl+E) was pressed. Waiting for the second key of chord…” last year, these weird errors...
2015-01-08
2,151 reads
The Situation
On the 19th November I am going to be presenting two sessions for the Luxembourg PASS chapter at the...
2014-11-12 (first published: 2014-11-07)
6,060 reads
Today I have the honour of presenting a session for the PASS Database Administration Virtual Chapter. The great thing about...
2014-11-12
676 reads
By HeyMo0sh
Over time, I’ve realised that one of the hardest parts of cloud management isn’t...
By HeyMo0sh
One of the biggest challenges I’ve faced in cloud operations is maintaining clear visibility...
By Steve Jones
I come to Heathrow often. Today is likely somewhere close to 60 trips to...
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