Article Of the Week
I really enjoy reading technical articles. They often enlighten me on new technologies or provide me with a new way...
2009-08-24
945 reads
I really enjoy reading technical articles. They often enlighten me on new technologies or provide me with a new way...
2009-08-24
945 reads
WARNING: This may be very obvious to most of you. However, several people that I have encountered did not realize...
2009-08-21
37,269 reads
Well we had a really good meeting this week at our User Group. There were about 17 physical attendees and...
2009-08-19
854 reads
Recently I have been involved in lots of projects involving replication. I have done some things to make replication work...
2009-08-17
1,272 reads
Well I spent most of this past Saturday upgrading my Laptop to Windows 7 Ultimate, which I have to say...
2009-08-13
751 reads
One of my clients called saying they were receiving the following error when trying to access a database: "Error 952...
2009-08-12
7,038 reads
Reminder: The Baton Rouge Area SQL Server User Group will be broadcasting its user group via live meeting. If you...
2009-08-12
453 reads
You know, I believe the old saying, “If you don’t use it you will lose it”. Well, I write a...
2009-08-10
81,752 reads
Well I just finished reviewing the evaluations for my presentation, Introduction to SQL Profiler, which I gave at the Baton...
2009-08-07
482 reads
A couple of weeks ago one of our developers sent me an email saying, “I have a query that returns...
2009-08-07
4,359 reads
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...
By Brian Kelley
If your organization is spending money, then meaningful results are a must. Pen testing...
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