2015-07-06
4,644 reads
2015-07-06
4,644 reads
References and links to help you learn how to create multiple tempdb files.
2015-06-29
3,064 reads
A few links to help you understand the Cardinality Estimator.
2015-06-29
319 reads
A list of technologies in SQL Server 2014 that you might want to learn more about.
2015-06-29
1,646 reads
A collection of technologies and links that will help you learn more about SQL Server 2012.
2015-06-25
1,401 reads
2015-06-23
7,715 reads
Our Question of the day is very popular, but we're looking for more complex questions
2014-09-08
650 reads
2014-08-21 (first published: 2014-08-19)
1,656 reads
We'd like to apologize to Gavin Draper who was plagiarized in an article published today.
2014-06-23
5,050 reads
As you may have noticed, we have been suffering recently from increased spam posts on the forums. This is something we're currently working to resolve.
2014-06-20
3,039 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