Optimizer Timeouts with XQuery
I was looking at performance of a database and I noticed a few of the plans were very large and...
2011-05-30
2,119 reads
I was looking at performance of a database and I noticed a few of the plans were very large and...
2011-05-30
2,119 reads
Did you ever accidentally close SQL Server Management Studio? And, in closing SSMS, did you get the prompt that says...
2011-05-25
916 reads
SQL Azure is still SQL Server at the end of the day. This means it is entirely possible to write...
2011-05-23
1,387 reads
This year the PASS organization is asking us to vote on the PASS Summit 2011 sessions, not as a means...
2011-05-18
733 reads
I’ve put in several abstracts for the 2011 Summit. This year we’re voting for preferred sessions. If you’re interested in...
2011-05-10
726 reads
There’s a project over on code plex to come up with a mechanism for validating databases and generating the necessary...
2011-05-09
1,307 reads
Tom LaRock has a new meme for Meme Monday. It’s all about the problems caused in your system other than...
2011-05-02
797 reads
When last we left our intrepid hero he had successfully deployed to SQL Azure using the Data-Tier Application Package, a...
2011-05-02
1,901 reads
Welcome once more to the Miskatonic branch of SQL University. I see that most off you survived out last encounter…...
2011-04-28
1,728 reads
One of the CSS Engineers from Microsoft has released a diagnostic tool for SQL Azure. It’s worth a look. It’s...
2011-04-26
1,014 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