A Month of PowerShell – Day 5 (Scripting – Putting it together)
Welcome to Day 5 of my “A Month of PowerShell” series. This series will use the series landing page on...
2013-02-05
1,650 reads
Welcome to Day 5 of my “A Month of PowerShell” series. This series will use the series landing page on...
2013-02-05
1,650 reads
T-SQL Tuesday Party History
In case you’ve been hiding out in the desert, oblivious to all that goes on, there is...
2013-02-08 (first published: 2013-02-05)
1,563 reads
Welcome to Day 4 of my “A Month of PowerShell” series. This series will use the series landing page on...
2013-02-04
987 reads
Welcome to Day 3 of my “A Month of PowerShell” series. This series will use the series landing page on...
2013-02-03
1,614 reads
Welcome to Day 2 of my “A Month of PowerShell” series. This series will use the series landing page on...
2013-02-02
1,850 reads
Welcome to Day 1 of my “A Month of PowerShell” series. PowerShell is one of those things that I know...
2013-02-01
2,200 reads
I ran into an interesting problem recently. There is a 4TB database that is log shipped to a DR site,...
2013-01-28 (first published: 2013-01-21)
1,817 reads
This month’s T-SQL Tuesday is hosted by Jason Brimhall. Being as this is January, lots of people are making New...
2013-01-08
756 reads
I’ve been digging deeper into the Ghost Cleanup process recently, and quite naturally my quest lead to Paul Randal’s blog....
2012-12-17
14,009 reads
Here we are at TSQL Tuesday #37 – the start of the fourth year. Sebastian Meine (@sqlity / blog) is hosting this...
2012-12-11
2,012 reads
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...
By Steve Jones
I come to Heathrow often. Today is likely somewhere close to 60 trips to...
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