2012-12-28
321 reads
2012-12-28
321 reads
Last Friday I went for a quick run before we packed up and headed to Steamboat Springs for a week’s...
2012-12-27
1,783 reads
I’m on holiday, but I have a set of predictions for 2013 coming on Jan 1. This is a little...
2012-12-27
983 reads
Steve Jones compares his daily routine now to that of being a DBA. This editorial was originally published on Mar 10, 2008. It is being re-run as Steve is on holiday.
2012-12-27 (first published: 2008-03-10)
591 reads
Steve Jones thinks that programmers should be able to negotiate any deal they can and Joel Spolsky has no reason to be upset. This editorial was originally published on May 12, 2008. It is being re-run as Steve is on vacation.
2012-12-26 (first published: 2008-05-05)
486 reads
2012-12-25
924 reads
2012-12-25
53 reads
2012-12-25
2,573 reads
The hot jobs for 2013 are compiles and a number of tech jobs make the top 100. DBAs come in 6th and Steve Jones thinks that's good news for data professionals.
2012-12-24
256 reads
A woman sues Best Buy for $54million. That's absurd, but her laptop is worth more than the hardware. This editorial was originally published on Mar 3, 2008. It is being re-run as Steve is traveling.
2012-12-24 (first published: 2008-03-03)
331 reads
By HeyMo0sh
Working in DevOps long enough teaches you two universal truths: That’s exactly why I...
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...
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