Using Notebooks in Azure Data Studio
Learn how to use the notebook feature of Azure Data Studio to keep a set of queries together with some documentation.
2023-11-09 (first published: 2019-04-11)
20,374 reads
Learn how to use the notebook feature of Azure Data Studio to keep a set of queries together with some documentation.
2023-11-09 (first published: 2019-04-11)
20,374 reads
2023-11-08
449 reads
In the past, Steve hasn't often felt management considered databases to be important, but that is changing.
2023-11-08
173 reads
Learn the basics of how Dynamic Data Masking can be used to obfuscate data in SQL Server 2016+.
2023-11-08 (first published: 2016-03-15)
8,393 reads
When we need to be heroes in IT on a regular basis, that's a problem for Steve.
2023-11-06
280 reads
2023-11-06
411 reads
zielschmerz – n. the dread of pursuing a lifelong dream, which requires you to put your true abilities out there to be tested on the open savannah, no longer...
2023-11-03
130 reads
I had someone ask me recently about deleting branches. While I had known how to delete a local branch, I had to look up how to delete a remote...
2023-11-03 (first published: 2023-10-23)
176 reads
I find that quite a few people using Flyway will end up with a lot of migration scripts over time. While you can certainly re-baseline and split scripts into...
2023-11-03
45 reads
2023-11-03
661 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