SQL Server Free eBooks, Softwares, Tutorials and Websites
When we start working as developer or learning, we often
face this issue. Where is the best tutorials, books and other...
2017-04-10
283 reads
When we start working as developer or learning, we often
face this issue. Where is the best tutorials, books and other...
2017-04-10
283 reads
Requirement: Recently we got the information from management
that our project will be getting the customers from China, so our application
should...
2017-03-28
149 reads
In this article I will be listing the tips and tricks to work like
a Pro.
So let's get started –
Important keyboard...
2017-02-20
265 reads
I will be writing
this article in four parts because this topic is huge and the amount of
information can be overwhelming...
2017-02-06
554 reads
This is not an article or a script. I am posting this just to share my experience and I feel...
2017-01-30
935 reads
There are many situations when we want to know the size of our database tables or just need a list...
2017-01-19
692 reads
I will be writing this series of articles for the Special Indexes in SQL Server. In this series we will...
2016-11-11
505 reads
This
article is the part of series Mastering Index, in this particular article
we will be exploring Index on computed
columns. Take a look...
2016-11-07
547 reads
This article is the part of series Mastering Index, in this particular article we will be exploring Index with included...
2016-10-18
485 reads
This article is the part of series Mastering Index, in this particular article we will be exploring Unique Index. Take a...
2016-10-14
464 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