A New Year's Present
I awoke this morning, rather later than usual after a small get together with some friends, and came down to...
2008-01-01
704 reads
I awoke this morning, rather later than usual after a small get together with some friends, and came down to...
2008-01-01
704 reads
It's important that you manage your career and not just leave it to chance. Steve Jones talks about what you might do to ensure that you'll be successful in the IT world.
2007-12-31
582 reads
Interviewing, Google as a monopoly, Cumulative Update 5 and more.
2007-12-31
118 reads
2007-12-28
104 reads
So my DVD drive in the new laptop appeared to be dead. It didn't appear in the "Computer" list with...
2007-12-28
1,466 reads
How anonymous are your ratings and other opinions on the Internet? Not as much as you might think.
2007-12-27
204 reads
Steve Jones takes a look at what's happening in the world of alternative energy, including cleaner nuclear power and energy from motion.
2007-12-26
58 reads
Maybe I'm succombing, maybe I'm lazy, most likely I don't want to mess with it.
I found some instructions for nLite,...
2007-12-25
1,487 reads
2007-12-25
35 reads
2007-12-25
2,513 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