Giving Thanks
I often say I am where I am in the community because of other folks. As we approach the close...
2010-12-16
726 reads
I often say I am where I am in the community because of other folks. As we approach the close...
2010-12-16
726 reads
The PASS Election Review Committee has geared up and we've started looking at the process of the entire election process...
2010-12-15
1,097 reads
This T-SQL Tuesday is hosted by Steve Jones (blog | twitter) and the topic he proposes is: "What issues have you...
2010-12-14
1,299 reads
I may end up missing this one next week... it all depends on when the baby comes. 🙂
Tuesday
PASS Application Development...
2010-12-10
1,016 reads
Cross-posted from a Goal Keeping DBA blog:
Just recently, my oldest son entered the ranks of the teenagers. I shouldn’t actually...
2010-12-07
2,060 reads
After seeing several cases in the past couple of months where I felt the basics of troubleshooting were violated, I...
2010-12-06
2,220 reads
Took a break from posting this last Friday due to the holidays. But I'm back with the weekly updates.
Monday
PASS Data Warehousing/BI...
2010-12-03
939 reads
Last night we were troubleshooting really poor performance on a core system. One of the things being investigated was a...
2010-11-24
1,027 reads
And I guess the experts would say that I probably should. I know that the professional development presentations by Steve...
2010-11-19
1,815 reads
Tuesday
Pragmatic Works - Building Calculations in SSAS 2008 - Brian Knight
PASS - PASS Summit 2010 Recap Round Table - Aaron Nelson
I'll be trying to...
2010-11-19
631 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