We’re All Mad Here!
The title says it all!
I just heard that I was selected to present at SQL Saturday in Columbus! I’m excited...
2014-05-09
719 reads
The title says it all!
I just heard that I was selected to present at SQL Saturday in Columbus! I’m excited...
2014-05-09
719 reads
2014 is the latest edition of SQL Server available[/caption]
SQL Server 2014 was officially released in April 1st, 2014. You can...
2014-04-22
55,546 reads
As a some of you may already know, I am now offering SQL Server boot camps with the first one...
2014-04-15
1,351 reads
What would you do?
What would your reaction be if, one day, all that old data you’ve been holding onto for...
2014-03-24 (first published: 2014-03-18)
1,962 reads
Don’t forget that most holiday’s aren’t work days.
Recently while working with a client I was faced with some seriously convoluted...
2013-09-21
1,792 reads
Digby! helps to demonstrate the top 10 reasons you need a dedicated SQL Server DBA.
They can handle unexpected database growth...
2013-05-21
450 reads
Why bother encrypting?
Riddle me this batman? Why bother to Encrypt?
As a SQL Server DBA I am primarily responsible for making...
2013-02-27
1,806 reads
I was going through some notes I had from previous projects and came across a sample script for created a...
2013-01-25
9,565 reads
Last night a client tried to ruin a script to enable Read_Committed_snapshot on a SQL database. There were so many...
2012-10-10
553 reads
I was doing some simple tuning of procedures for a client when I came across some delete statements that I...
2012-10-05
871 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