Summarizing a Script with SQL Prompt
I have never used this feature, but someone was asking for feedback on Prompt, and I noticed this in the menu: Summarize script. I had guessed that it might...
2021-03-22 (first published: 2021-03-17)
67 reads
I have never used this feature, but someone was asking for feedback on Prompt, and I noticed this in the menu: Summarize script. I had guessed that it might...
2021-03-22 (first published: 2021-03-17)
67 reads
With many of us working in a distributed fashion, Steve wonders if things have changed for the process flow you follow.
2021-03-22
137 reads
Databases don't manage themselves, but Steve sees this as an opportunity, not a problem.
2021-03-20
105 reads
2021-03-19
434 reads
I started to add a daily coping tip to the SQLServerCentral newsletter and to the Community Circle, which is helping me deal with the issues in the world. I’m...
2021-03-19
11 reads
My coping tip a couple days ago was to enjoy your weather. In it, I was dealing with clouds and what most people see as bad weather. Today is...
2021-03-19
15 reads
I’ll turn this into an editorial, but it’s been a year since my area shut down and life changed. I would never have guessed things would last this long,...
2021-03-19
11 reads
With Redgate planning to donating the SQL Saturday brand, trademarks, and domain to a non-profit foundation, there is a need to build a group of individuals to voluntarily manage the...
2021-03-19 (first published: 2021-03-15)
264 reads
Today Steve asks about the tools you use for your job and if they help or hurt your productivity.
2021-03-19
176 reads
I started to add a daily coping tip to the SQLServerCentral newsletter and to the Community Circle, which is helping me deal with the issues in the world. I’m...
2021-03-18
14 reads
By HeyMo0sh
Over time, I’ve realised that one of the hardest parts of cloud management isn’t...
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...
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