PASS Sessions Submitted
Hey guys, I’m preparing a few new article series for you but in the meantime I wanted to let you...
2010-07-09
318 reads
Hey guys, I’m preparing a few new article series for you but in the meantime I wanted to let you...
2010-07-09
318 reads
Hey there SQL Lunchers. Your co-host Adam Jorgensen here. I wanted to let you know, for those of you whose...
2010-07-09
349 reads
Hey folks. I have yet to explore the world of Wolfram Alpha and still don’t claim to be an expert...
2010-07-09
392 reads
Check out our latest book on Amazon. It’s not for sales yet, but just seeing the title up there is...
2010-07-06
338 reads
I have posted several entries lately about events that I’ve been attending, speaking and listening at and one of the...
2010-05-24
699 reads
Well, for those of you who attended, SQL Saturday Jacksonville, was, well I’ll say it, EPIC. Between all the great...
2010-05-24
310 reads
This is long overdue and goes out to my buddies from the SSAS Class I taught late last year. Two...
2010-05-24
402 reads
Hey there gang ! – It’s been a while since I’ve written and I apologize. It’s shameful I know. I just completed...
2010-05-10
350 reads
SQL Lunch has been a great resource for a while now, delivering lunchtime presentations. I was recently asked to be...
2010-03-02
344 reads
Many times when going from demo to development to client demo, we are always starting and stopping our SQL Server...
2010-02-27
1,555 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