Using “NOT IN” in a query can provide mixed results
The topic came up at work awhile back with using various includes/excludes such as IN, NOT IN, and EXISTS. A...
2011-05-31
1,385 reads
The topic came up at work awhile back with using various includes/excludes such as IN, NOT IN, and EXISTS. A...
2011-05-31
1,385 reads
On June 1st GITCA will run a 24 hour round-the-world virtual event focusing on Cloud Computing. Please visit http://sp.GITCA.org/sites/24Hours for...
2011-05-31
1,597 reads
There are lots of scenarios in SSIS where you'd want to use a connection within a Script Task. Unfortunately, the...
2011-05-31
25,957 reads
Introduction
We have always
been wondering on how to protect/secure our t-sql code written in Stored
Procedures and UDF in shared hosting environment...
2011-05-31
13,232 reads
What are the most influential papers in the world of Big Data? Let me suggest:...
2011-05-30
46 reads
What are the most influential papers in the world of Big Data? Let me suggest: http://bit.ly/BigData1 We face a data management problem: IDC 2010 Digital Unverse Study http://bit.ly/BigData2...
2011-05-30
50 reads
These are five rules for writing from Ernest Hemingway, which I like and recommend for use in your communications. Definitely...
2011-05-30
1,752 reads
A followup to a post about subqueries with an estimation for how long it would take for the query to...
2011-05-30
3,599 reads
It’s Memorial Day, and as usual, I have a blooper reel for the editorial. However I couldn’t fit everything in...
2011-05-30
1,664 reads
I have been compiling a list of what things a person can do to become an expert, or guru, in...
2011-05-30
5,100 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