I think it’s a hole
The other day I was trying to help someone that had removed the BUILTIN/Administrators logins from their instance without first...
2010-02-04
817 reads
The other day I was trying to help someone that had removed the BUILTIN/Administrators logins from their instance without first...
2010-02-04
817 reads
The other night I was tired, a few long days, early mornings with the kids, and slightly wired, but needing...
2010-02-03
289 reads
After my editorial this week on Coding By the Sea, my boss actually pinged me to say that I could...
2010-02-03
388 reads
An interesting experiment at Red Gate, Coding By the Sea, produced results, and Steve Jones thinks this could be a great idea for other companies.
2010-02-02
164 reads
I guess you could look at this one of two ways. Either PASS acquired SQL Saturday, or we (Andy, Brian,...
2010-02-02
580 reads
Steve Jones talks a little about disk alignment for your SQL Server instances. This is something that you might to check on your systems and see if you can improve performance.
2010-02-01
144 reads
I had meant to check what was up with my Toshiba laptop since I was curious. I gave up last...
2010-02-01
336 reads
I talked a little recently in a blog about gaps in identity values. They can occur when you delete rows,...
2010-02-01
592 reads
With the release of an in-memory database from Sybase, is it time for SQL Server to join the fray?
2010-02-01
322 reads
One of the reasons that I did not vote for President Obama was his stance on our energy issues, specifically...
2010-02-01
326 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