What is the current database context?
Every now and again it can be very helpful to know what the current database context is when you are...
2015-12-21
679 reads
Every now and again it can be very helpful to know what the current database context is when you are...
2015-12-21
679 reads
We’ve been using the wrong data types for all the wrong reasons. DBAs, developers, data architects, etc. have all been...
2015-12-21
991 reads
Most data warehouses have at least a couple of Type 2 Slowly Changing Dimensions. We use them to keep history...
2015-12-21
1,000 reads
This is one the articles in the series of step by step SSIS tutorial. In this post, we are going...
2015-12-20
849 reads
I saw the post from Steve Jones about the Advent of Code contest and decided to take a look. The first...
2015-12-18
666 reads
It’s Monday and time for this week’s blog and twitter round-up for last week. If you haven’t already, follow me...
2015-12-18
320 reads
The new Star Wars film opens today, and while I won’t see it then, perhaps I’ll get to it early...
2015-12-18
632 reads
The hardest presentations I’ve ever given in my life were not to large audiences or in big rooms. They weren’t...
2015-12-18
457 reads
In last post tip #122, We discussed Merge transformation. Now in this tip, we are going to discuss Merge Join....
2015-12-31 (first published: 2015-12-18)
2,560 reads
Poor storage performance continues to be the largest pain point with enterprise Database Administrators in today’s virtual world. However, it...
2015-12-17
1,088 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