New SQL Blogging Challenge
I recently came across Tim Ford’s (B|T) challenge to the technical blogging community. The challenge is to write one introductory...
2016-01-19
397 reads
I recently came across Tim Ford’s (B|T) challenge to the technical blogging community. The challenge is to write one introductory...
2016-01-19
397 reads
Time is slowly ticking toward 0:00 on the clock. As I look around I couldn’t help but reflect back on...
2015-12-22
496 reads
Take a minute and look around you. Automation is all around you; whether you see it or not processes are...
2015-11-30 (first published: 2015-11-24)
1,507 reads
I am always looking for ways to get involved within the PASS community. One such way that has become available...
2015-11-17
476 reads
T-SQL Tuesday is here again. I’ve had good intentions the past few times this event has come around and even...
2015-11-13 (first published: 2015-11-10)
1,976 reads
Everyone has a story; some stories are similar while some stories are vastly different. People always make the statement that...
2015-11-12
622 reads
The day finally came and I was fortunate, no I was blessed to be a part of the PASS Summit...
2015-11-04
535 reads
As I sit here in an offshoot of the convention center, I started reflecting back to this morning’s keynote for...
2015-10-29
859 reads
PASS Summit Key note is off the ground and running…..
President Thomas LaRock talks about the 16th annual meeting that is...
2015-10-28
331 reads
PASS Summit Key note is off the ground and running…..
President Thomas LaRock talks about the 16th annual meeting that is...
2015-10-28
460 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