September 11 - Never Forget - My story of the tragic day..........
I was sitting going through some of my materials, scripts, emails and news feeds to find a worthy topic for...
2009-09-10
1,328 reads
I was sitting going through some of my materials, scripts, emails and news feeds to find a worthy topic for...
2009-09-10
1,328 reads
Labor Day, which marks the unoffical end of Summer in the U.S., is particularly poignant in light of the news...
2009-09-08
850 reads
Job Market Update and some Job Search Advice…..
Not too long ago, I posted a blog on the possible thawing of...
2009-09-04
1,412 reads
Compression is one of the major features introduced in SQL Server 2008, and one that can significantly reduce disk storage. ...
2009-08-31
9,516 reads
Now that the kids have interest in computers, I sometimes find myself competing with them. I recently purchased a business class...
2009-08-29
1,360 reads
Database Mirroring w/o a Domain, Can be a Pain - but it can be done......
Have you ever had to setup mirroring...
2009-08-25
6,524 reads
As I was going through some of my documentation at past clients, I found my summary of the general SOX...
2009-08-23
2,461 reads
Yesterday, I blogged about basic I/O usage with some useful scripts, DMVs, and links to more in-depth details on examining...
2009-08-19
1,635 reads
I/O I/O - It's why my server's slow.....
Often I've been curious about ways to measure the performance of SQL Server, and...
2009-08-18
4,628 reads
The Fisherman and the "C" ("City")
Ok, I know when most think about NYC, they think latte-sipping wall-street yuppie (I'm...
2009-08-16
572 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