I Am Running For the PASS Board of Directors: #passvotes
This year, I submitted my application to run for the PASS Board and it was accepted. This then is my...
2014-09-22 (first published: 2014-09-17)
6,195 reads
This year, I submitted my application to run for the PASS Board and it was accepted. This then is my...
2014-09-22 (first published: 2014-09-17)
6,195 reads
I am running for the PASS Board. You can read more about what I’ve posted and what others have to...
2014-09-19
529 reads
I’m putting on a pre-conference seminar (also known as a pre-con) at the PASS Summit this year. I’m really honored...
2014-09-16
605 reads
I’ve been attempting to expand my reach to get back to my roots in development. I’m doing this because I...
2014-09-15
691 reads
I’ve put together a new Curah! of links to some of the better articles on SQL Server Statistics, specifically those...
2014-09-15 (first published: 2014-09-10)
7,392 reads
I’m learning how to speak German. Interestingly enough, you don’t start off reading dissertations. Instead, you begin by learning the...
2014-09-09
823 reads
No, this is not about politics. It’s about your WHERE clause… and your JOIN criteria… and your HAVING clause. It’s about a...
2014-09-08 (first published: 2014-09-03)
6,767 reads
This month I’m very grateful because I was given the opportunity to present at DevLink in Chattanooga. I got to...
2014-09-05
524 reads
I don’t mind saying that amyotrophic lateral sclerosis (ALS), also known as Lou Gehrig’s disease, scares me. A degenerative disease...
2014-08-21
1,232 reads
As companies go, Red Gate is a little different. That is readily apparent in our tools and the philosophy behind...
2014-08-20
749 reads
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...
By HeyMo0sh
One of the biggest challenges I’ve faced in cloud operations is maintaining clear visibility...
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