I'm in at SQL Connections!
At the end of March I'll be journeying down with the family to Orlando, Florida. We plan on stopping in...
2011-02-18
947 reads
At the end of March I'll be journeying down with the family to Orlando, Florida. We plan on stopping in...
2011-02-18
947 reads
There's the light, as this is the last class for Security week at SQL University. From the scenarios we specified...
2011-02-11
1,610 reads
Thanks for hanging in there for Day 4 of Security Week here at SQL University. Today we're going to look at the...
2011-02-10
2,165 reads
Free training. Excellent speakers. Outstanding location. Great networking opportunities. Experienced and efficient event staff. These are the primary things you...
2011-02-10
2,148 reads
Day 3 of Security Week at SQL University is now in session. You're implementing a third party solution and you...
2011-02-09
4,156 reads
Welcome back to day 2 of Security Week for this semester of SQL University. If you missed yesterday's introduction, you'll...
2011-02-08
2,473 reads
Welcome to this semester's security week at SQL University. In previous semesters we've covered the technical aspects of SQL Server...
2011-02-07
3,320 reads
Cross-posted from the Goal Keeping DBA blog:
Personal appearance matters. We all know this. Yet a lot of times we don’t...
2011-02-04
1,142 reads
As I annouced earlier, Oracle and database expert, Bert Scalzo and I collaborated on an introductory text appropriately titled Introduction to SQL...
2011-01-26
703 reads
Want a legitimate chance to win an eBook reader like a Kindle? Would having it loaded down with eBooks on...
2011-01-25
824 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