Have the Time? Get in the Game.
This year there's a two step process for electing members to the Professional Association for SQL Server (PASS) Board of Directors...
2011-08-11
883 reads
This year there's a two step process for electing members to the Professional Association for SQL Server (PASS) Board of Directors...
2011-08-11
883 reads
A long time ago (in IT terms) in a galaxy far, far away I was helping an organization with a...
2011-08-10
2,065 reads
There are a few posts and articles around the security-scape lately concluding Windows 7 is more secure than OS X,...
2011-08-09
811 reads
My primary responsibility at my organization is no longer to be the security architect and incident response team lead. I...
2011-08-08
950 reads
I'm always wary of contests to win free stuff, but the folks running MSSQLTips.com are legitimate (I write there as...
2011-08-04
1,043 reads
I grew up immersed in security. My father was a US Marine and going on and off base meant... security....
2011-08-03
1,232 reads
We recently ran into a case where connecting to a Windows Server 2003 server with SQL Server installed on it,...
2011-08-02
15,668 reads
This is part of a series of tips on how bad/rogue admins can get access to the data in your...
2011-07-28
2,177 reads
This is part of a series of tips on how bad/rogue admins can get access to the data in your...
2011-07-25
1,061 reads
This is part of a series of tips on how bad/rogue admins can get access to the data in your...
2011-07-22
1,371 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