Index Black Ops Part 2 – Page IO Latch, Page Latch
As I mentioned in my TSQL2sDay index summary post, the I am writing a few posts on the information that...
2010-09-16
3,101 reads
As I mentioned in my TSQL2sDay index summary post, the I am writing a few posts on the information that...
2010-09-16
3,101 reads
As I mentioned in the my TSQL2sDay index summary post, the next few posts will be on sys.dm_db_index_operational_stats and the...
2010-09-15
1,395 reads
Ever feel like you are all alone? Maybe a little isolated? This month’s PASSMN meeting might bring up these feelings...
2010-09-15
618 reads
Here we are with another T-SQL Tuesday and time for my entry into the fray. This month we are talking...
2010-09-14
717 reads
Have you taken the time to plan a fall get-away for some free SQL Server training? You can do this...
2010-09-08
757 reads
A couple weeks back someone asked me some questions about data types. Apparently, while implementing some financial data, each developer...
2010-08-24
768 reads
This Friday I’ll be traveling to Nashville for SQL Saturday #51. Because I rock, I picked a 5:40 AM flight...
2010-08-17
513 reads
It’s that time of the month and that time of the years. Time for another PASSMN meeting. Also, time for...
2010-08-16
426 reads
That’s right! PASSMN is breaking the mold and heading onto new ground. We are making our second annual Friday full-day...
2010-08-16
541 reads
It’s been a busy week and I haven’t been able to put the time in to picking the winner for...
2010-08-07
770 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