No thrills about spills
Statistics, in simplest terms, refer to the distribution of data in a column or index. They are represented in a...
2015-09-21
786 reads
Statistics, in simplest terms, refer to the distribution of data in a column or index. They are represented in a...
2015-09-21
786 reads
One of the hassles of working in a development team is that you will have conflicts between your code and...
2015-09-21
1,057 reads
XML handling with aliases
I find it interesting the difference in behavior with querying XML between column assignment, and quoted alias...
2015-09-21
318 reads
I have spoken a number of times at different SQLSaturdays around the world, including some rather rare editions, such as...
2015-09-21
440 reads
A predicate is a filtering mechanism used in SQL Server to target specific data when either querying or updating rows.
Related Posts:
Short Circuiting Your Session January 5, 2019
How To:...
2015-09-21
14 reads
At one time or another, a predicate has been the best friend or worst enemy of the data professional. If...
2015-09-21
725 reads
Tables within SQL Server can contain a maximum of 8060 bytes per row. However even though columns are limited to...
2015-09-21
376 reads
Tables within SQL Server can contain a maximum of 8060 bytes per row. However even though columns are limited to...
2015-09-21
654 reads
I spent something like 2 hours today trying to figure out how a particular user had access to one of...
2015-09-21
635 reads
The pie chart should be avoided at all costs. Why?
you can only display a limited number of slices (although that...
2015-09-21
553 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