Epsilon Data Breach and Staying Safe
By now, you may have received an email from one of the larger businesses you've given your email address to...
2011-04-05
758 reads
By now, you may have received an email from one of the larger businesses you've given your email address to...
2011-04-05
758 reads
Tom LaRock (blog | twitter) proposed a Meme Monday and his first choice of topics was to write a SQL Server...
2011-04-04
699 reads
In a recent explanation about the RSA breach, Rick Wanner wrote on the Internet Storm Center (ISC) Diary:
The traditional paradigm...
2011-04-04
2,148 reads
When SQL Connections in the spring was announced, the folks at Red Gate and SQL Server Central reached out to...
2011-04-01
843 reads
My name is Brian Kelley and I used to be a PC bigot. That was back in 1989. I was...
2011-03-31
1,570 reads
Most folks I know hate meetings. They especially hate meetings about meetings. Recently I was working with a developer who...
2011-03-30
2,097 reads
This topic actually came up at SQL Saturday #70 - Columbia, SC. I spent the first 15 years of my life...
2011-03-29
2,163 reads
Cross-posted from the Goal Keeping DBA blog:
In the September 2010 issue of Toastmaster magazine there’s a great article by Chris...
2011-03-28
1,276 reads
SQL Saturday #70 is officially in the books. There's some administrative stuff: I will do a blog post about lessons...
2011-03-21
778 reads
We are in the final stages of prepping for SQL Saturday #70, here in Columbia, SC. We have right around...
2011-03-18
724 reads
By HeyMo0sh
One of the biggest challenges I’ve faced in cloud operations is maintaining clear visibility...
By Steve Jones
I come to Heathrow often. Today is likely somewhere close to 60 trips to...
By Brian Kelley
If your organization is spending money, then meaningful results are a must. Pen testing...
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