No Green Compromises
I saw this blog about an Accenture survey of potential car buyers. It mentions that people likely won’t buy a...
2010-03-12
923 reads
I saw this blog about an Accenture survey of potential car buyers. It mentions that people likely won’t buy a...
2010-03-12
923 reads
I think maintenance plans were a great improvement in SQL Server 2005, with a more visual designer and the ability...
2010-03-11
814 reads
Does it make sense to publish multiple articles on the same subject? Steve Jones talks about the reasoning behind how SQLServerCentral chooses content.
2010-03-11
137 reads
Do you write code that writes code? Steve Jones thinks this is one of those milestones that marks the maturity of a DBA.
2010-03-10
420 reads
For the handover of SQLSaturday to PASS, Rushabh Metha, President of PASS, came to the Charlotte SQL Saturday, where Andy...
2010-03-10
915 reads
It’s time for the March T-SQL Tuesday and this month Mike Walsh picked the topic. It’s I/O and you can...
2010-03-09
466 reads
Steve Jones talks about one of the highlights of his year: working the door at the PASS Community Summit.
2010-03-09
105 reads
I missed the 2010 MVP Summit, which is disappointing. There were a lot of SQL 11 talks and I was...
2010-03-08
420 reads
We all need time to relax and unwind, but what happens if that time is interrupted by a work call? Should you respond? Steve Jones reminds us that you can say no if you are not prepared to work.
2010-03-08
238 reads
I didn’t quite read this, but this was the written part of what I have as the opening keynote for...
2010-03-06
462 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...
Hi all, I just started using VS Code to work with DB projects. 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
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