SQL Saturday in New England
Adam Machanic (blog|twitter) has put on a SQL Saturday/Data camp event in New England for the last two years. I’ve...
2010-10-04
396 reads
Adam Machanic (blog|twitter) has put on a SQL Saturday/Data camp event in New England for the last two years. I’ve...
2010-10-04
396 reads
I saw an odd statement the other day, “The size of the name of the parameter does not affect performance.”...
2010-09-27
1,029 reads
I was privileged to be able to attend and present at SQL Saturday 46 in Raleigh, NC, this last weekend....
2010-09-20
826 reads
Normally, I try to stick to posting technical info or community stuff on the blog, but there were a couple...
2010-09-07
569 reads
I am not a Reporting Services guru and nor do I play one on TV. I am however forced to...
2010-09-03
2,654 reads
Blogging has been a bit quiet of late. That’s because I’ve been spending a lot my spare time getting ready...
2010-08-30
765 reads
There are a lot of things I’d like to say about the PASS elections. I was on vacation last week...
2010-08-23
685 reads
Registration is open for the second 24 Hours of PASS this year. This one is going to be a preview...
2010-08-11
556 reads
I won’t be going to Las Vegas, but I will be presenting to the Las Vegas SQL Server Users Group,...
2010-08-11
623 reads
I just passed 100,000 views on the blog. That’s from 400 posts over a period of time starting in March...
2010-08-01
658 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...
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