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
695 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
695 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
9 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
583 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
10 reads
Today is Meme Monday and is a little thing that Thomas LaRock (Blog | Twitter) has started. Today he has started...
2011-05-02
917 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
16 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,369 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
7 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,830 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
16 reads
By SQLPals
How to Clear the SSMS Cache (SSMS 21 and Later) Updated...
By Arun Sirpal
“What exactly did it do on my server?” is the first question a DBA...
By James Serra
Microsoft shared a broad set of Fabric, Power BI, and SQL updates at FabCon...
Comments posted to this topic are about the item Let's Talk Certifications
Comments posted to this topic are about the item The Hidden Security Risks of...
Comments posted to this topic are about the item The Empty Aggregate
I have this table in a SQL Server 2025 database:
CREATE TABLE [dbo].[CustomerOrder] ( [OrderID] [int] NULL, [CustomerID] [int] NULL, [total] [money] NULL ) ON [PRIMARY] GOWhat is returned from this code? (answers are for the sum and then the count)
SELECT SUM(total) AS sum,
COUNT(total) AS count
FROM dbo.CustomerOrder;
See possible answers