Are Backup Devices Obsolete?
I thought they were, but I've had a bit of a debate in the forums with someone. There was a...
2008-05-02
696 reads
I thought they were, but I've had a bit of a debate in the forums with someone. There was a...
2008-05-02
696 reads
How often do you worry about your database size and free space? Steve Jones asks how you administer your SQL Server database space this Friday.
2008-05-02
1,091 reads
A minor change for the podcasts next week. I got my wireless microphone, and I'm working with it a bit...
2008-05-02
1,918 reads
A look back at the news of the past week dealing with SQL Injection, slow SQL Server growth and two level security.
2008-05-02
180 reads
A look back at the news of the past week dealing with SQL Injection, slow SQL Server growth and two level security.
2008-05-02
267 reads
A look back at the news of the past week dealing with SQL Injection, slow SQL Server growth and two level security.
2008-05-02
485 reads
Steve Jones examines what big is these days and a few examples of what the largest database people in the world deal with.
2008-05-01
336 reads
I've never really been a big fan of many of the aggregation sites. As such I have never really used...
2008-05-01
713 reads
One of the things that I made a conscious effort to do last summer was make a regular effort to...
2008-05-01
727 reads
How often do you worry about your database size and free space? Steve Jones asks how you administer your SQL Server database space this Friday.
2008-05-01
31 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