Why the Lazy Spool Is Bad
First thing, there are no bad operators, just bad parents, uh, I mean query writers, or database designers, or ORM...
2013-09-24 (first published: 2013-09-16)
3,577 reads
First thing, there are no bad operators, just bad parents, uh, I mean query writers, or database designers, or ORM...
2013-09-24 (first published: 2013-09-16)
3,577 reads
Microsoft has release the CU update package 6 for SQL Server 2012 SP1. To apply this package in your environment,...
2013-09-23
1,328 reads
It’s just a week until Dev Connections. This is one of the great conferences for the hybrid technology person, with...
2013-09-23
680 reads
This was a task from last week. There was a server where we wanted to make some adjustments to security...
2013-09-23
951 reads
The SQL Server Premier Field Engineer blog has a post about an issue with installing SQL Server 2008 on a...
2013-09-23
2,064 reads
Warning, this is just a non-technical anecdotal blog of a silly time-warp incident that happened to me yesterday. Thought it...
2013-09-23
874 reads
Monday morning and it’s time for weekly round-up. If you follow me on twitter (@StrateSQL), you’ll know that throughout the day I tweet...
2013-09-23
995 reads
The scope statement in MDX is great for applying calculations to a certain area of a cube, also called a...
2013-09-23
1,234 reads
(Be sure to checkout the SQLpassion Online Academy, where you get High-Quality SQL Server Trainings with Instant Access!)
Over the next...
2013-09-23
767 reads
Earlier this morning the official list of candidates running for the PASS Board of Directors was announced. I’m both delighted...
2013-09-23
570 reads
By James Serra
I’m honored to be hosting T-SQL Tuesday — edition #192. For those who may...
By Vinay Thakur
Continuing from Day 2 , we learned introduction on Generative AI and Agentic AI,...
Quite the title, so let me set the stage first. You have an Azure...
hi everyone I am not sure how to write the query that will produce...
Comments posted to this topic are about the item Rollback vs. Roll Forward
Comments posted to this topic are about the item Foreign Keys - Foes or...
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 *
FROM OPENJSON(
(
SELECT t.* FROM #test_data AS t FOR JSON PATH
)
) t; See possible answers