Incompetent or Malicious
When someone else doesn't do a good job to prove a point, are they incompetent or malicious? Steve Jones comments.
2010-07-20
282 reads
When someone else doesn't do a good job to prove a point, are they incompetent or malicious? Steve Jones comments.
2010-07-20
282 reads
The application form mentions that the quite a bit of what you include will be made public. While I won’t...
2010-07-20
710 reads
When is backup not enough? Steve Jones talks about a few things that can cause you issues and a backup can't help you recover from.
2010-07-19
343 reads
I send my board of directors nomination application to PASS and asked for a confirmation. I always worry that something...
2010-07-19
675 reads
I saw this on the 37 Signals blog as “I’ve already got the prize" and found it to be both...
2010-07-19
663 reads
A new event is coming to the East Coast next year that will give people a chance to experience a SQL Server conference at a much lower cost.
2010-07-19
85 reads
Trying to keep up with all the learning going on in the SQL Community can be frustrating. Or is it? Give us your answer in this week's Friday poll.
2010-07-16
139 reads
Why would you do this?
select distinct(hostname),
(select count(*) as criticalCnt
from @temp where severity_guid='0168A833-1732-411E-8205-C2F6CD91737D'
and hostname=t.hostname
group by hostname),
(select count(*) as criticalCnt...
2010-07-16
1,921 reads
I’ll announce it here first, along with some reasons why I’m waffling from an earlier post:
I’m going to run...
2010-07-16
2,186 reads
2010-07-16
2,901 reads
By Brian Kelley
I will be leading an in-person Certified Information Systems Auditor (CISA) exam prep class...
EightKB is back again for 2026! The biggest online SQL Server internals conference is...
By HeyMo0sh
Working in DevOps long enough teaches you two universal truths: That’s exactly why I...
Hi all, I just started using VS Code to work with DB projects. I...
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
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