T-SQL Tuesday #18 – CTEs
To CTE or not to CTE, that is the Question
So my post really has nothing to do with the title....
2011-05-10
693 reads
To CTE or not to CTE, that is the Question
So my post really has nothing to do with the title....
2011-05-10
693 reads
To CTE or not to CTE, that is the Question So my post really has nothing to do with the title. This is not a post to help you...
2011-05-10
2 reads
After a whirlwind of last minute changes last month, we expect stability this month with the monthly meeting.
Meeting Time is...
2011-05-03
574 reads
After a whirlwind of last minute changes last month, we expect stability this month with the monthly meeting. Meeting Time is 6:30PM PST Erika Bakse (blog | twitter) has...
2011-05-03
2 reads
Today is Meme Monday and is a little thing that Thomas LaRock (Blog | Twitter) has started. Today he has started...
2011-05-02
912 reads
Today is Meme Monday and is a little thing that Thomas LaRock (Blog | Twitter) has started. Today he has started things off with a list of things that...
2011-05-02
10 reads
Today I had a bit of regret slap me in the face. That face slap came from participation in a...
2011-04-29
1,367 reads
Today I had a bit of regret slap me in the face. That face slap came from participation in a SQL Quiz on twitter that was hosted by Paul...
2011-04-29
4 reads
SQL Server 2008 has presented us a couple of options to aid in becoming better DBA’s. You can see this...
2011-04-29
3,749 reads
SQL Server 2008 has presented us a couple of options to aid in becoming better DBA’s. You can see this evidenced in many ways in the product. A couple...
2011-04-29
9 reads
By HeyMo0sh
Microsoft Fabric (not to be confused with the more general term “fabric” in DevOps)...
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,...
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