SQL University: Auditing SQL Server, Part I
Welcome to the Security and Auditing Week for SQL University. Last semester we looked at the basics of SQL Server...
2010-04-26
2,787 reads
Welcome to the Security and Auditing Week for SQL University. Last semester we looked at the basics of SQL Server...
2010-04-26
2,787 reads
If you weren't aware, Microsoft held a BI telelconference today which announced the release to manufacturing (RTM) of SQL Server...
2010-04-21
1,185 reads
Since I've decided it's time for me to learn Powershell, naturally the best way to learn it is to dive...
2010-04-21
764 reads
In my last blog post I indicated that I would be adding learning PowerShell to my list of goals. I...
2010-04-15
5,034 reads
PowerShell has been out for a while. When it first came out, I went and grabbed a copy and tinkered...
2010-04-14
4,282 reads
This actually came as a response to a tweet from Mike Walsh (Twitter | Blog). But here is the barebones checklist I...
2010-04-13
588 reads
That's the main point from the following article:
Video: Data breaches to cost more in the cloud
The cost was calculated per...
2010-04-09
1,033 reads
Jorge Segarra's ( @SQLChicken) excellent community idea, SQL University, is starting back up next week. This is effectively free training on...
2010-04-08
743 reads
In a previous post I gave some links which help explain what plagiarism is and how to generally avoid it....
2010-04-08
668 reads
I'm still way behind on my writing for the year, thanks to fighting off stronger than usual migraines and now...
2010-04-07
1,671 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