SQL Saturday #45 Cancelled
I hate not living up to commitments. It really, really bothers me and I have tried hard in my career...
2010-12-10
649 reads
I hate not living up to commitments. It really, really bothers me and I have tried hard in my career...
2010-12-10
649 reads
I have been trying to figure out where to go in 2011 for SQL Saturdays, especially as Red Gate is...
2010-12-10
714 reads
Microsoft is working to certify vendors to build private clouds, which Steve Jones thinks is a great idea.
2010-12-09
172 reads
A look at what's happening with the SQLServerCentral servers based on the public information exposed by SQL Monitor.
2010-12-09
1,728 reads
Can you accurately determine the cost or benefit of a new, cool project up front? Steve Jones thinks not, but coming up with new projects can be a way to set yourself apart from others.
2010-12-08
114 reads
A repost from SQLServerCentral.
What would you like for Christmas?
Hint, hint, a little visual imagery of the kind of prize that...
2010-12-08
909 reads
Steve Jones found a very fascinating way that might keep elections more secure, verifiable, and also more open.
2010-12-07
107 reads
It’s time to wrap up T-SQL Tuesday for the year 2010 and I was invited to host his month’s blog...
2010-12-07
8,279 reads
I’m about to go down one laptop, which is good. I have had too many for some time. Right now...
2010-12-06
395 reads
I had my laptop connected to a projector recently, and for some reason a few windows got moved off screen,...
2010-12-06
565 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