Visualize Tech Skills
Is your area of responsibility starved for resources? Is it difficult to get a raise? If so, don't despair. You're...
2011-02-24
1,808 reads
Is your area of responsibility starved for resources? Is it difficult to get a raise? If so, don't despair. You're...
2011-02-24
1,808 reads
It finally dawned on me why people would bother getting a separate book-reading device like Kindle - and why it might...
2010-12-22
1,234 reads
The Development DBA role, though not as common as the more prominent DBA and Database Developer roles in the database...
2010-12-01
4,492 reads
I wanted the SCRUM Master certification this year, and could have gone local, but I wanted to get the training...
2010-04-30
2,100 reads
The picture I got from public school about evolutionary processes - and the view that I think most people share - has...
2010-04-06
778 reads
SQL Server Training is out there in all sorts of formats, price points and quality. It's time to look at...
2010-02-25
922 reads
Through a circuitous route, I encountered a meaningful, thought-provoking quote lately: "... the best way to predict the future is to...
2010-02-16
1,517 reads
So this week I attended a preview for Visual Studio 2010. In addition to database development, I do ASP.NET development...
2009-12-04
2,135 reads
A colleague of mine pointed out a great podcast called This American Life - specifically an episode with John Hodgman (the...
2009-11-12
1,051 reads
Despite the down economy, the 2009 PASS Summit attendance was down only 8% compared to the 15% of other conferences...
2009-11-12
771 reads
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...
By HeyMo0sh
One of the biggest challenges I’ve faced in cloud operations is maintaining clear visibility...
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