Fighting Procrastination?
Here is another short video (~ 15 minutes). This is by the author of The Power of Habit, Charles Duhigg. In this video, he delves into why we procrastinate...
2026-10-30 (first published: 2026-10-27)
1,109 reads
Here is another short video (~ 15 minutes). This is by the author of The Power of Habit, Charles Duhigg. In this video, he delves into why we procrastinate...
2026-10-30 (first published: 2026-10-27)
1,109 reads
I had a briefing for the 2026 PASS Data Community Summit, which is just a couple of weeks away. Amongst a bunch of admin type stuff, there was a...
2026-10-27
36 reads
Your AI is busy. But do you know what it's worth? Most companies can tell you how much AI they use. Few can say what it's worth. Here's how...
2026-11-02 (first published: 2026-10-26)
316 reads
I wear many hats in technology, and one of those is as a (cyber)security professional. Needless to say, the timeline around the PHP2Shell vulnerabilities has me interested. SecurityWeek has...
2026-11-04 (first published: 2026-10-26)
303 reads
We keep adding stuff to Redgate Monitor, and it’s easy to miss some of the improvements. Here’s one that’s been around quite awhile, but while discussing the product with...
2026-11-02 (first published: 2026-10-26)
271 reads
Founded in 2014 by three data enthusiasts, Joyful Craftsmen has grown into an international Data & AI company. Explore our journey, the principles behind our work, and the next...
2026-10-26
48 reads
The following came across my YouTube feed today. It’s an interview with General James Mattis, USMC, Retired, talking about lifelong learning, the expectations of learning in the Marine Corps,...
2026-10-28 (first published: 2026-10-23)
177 reads
“You don’t need more time because you already have all the time that you will ever get; you need more focus.” – from Excellent Advice for Living Boy, I...
2026-10-30 (first published: 2026-10-23)
171 reads
I don’t currently manage Microsoft 365 Copilot in an enterprise environment, but it is one of those technologies that I want to understand better. As AI becomes part of...
2026-11-06 (first published: 2026-10-23)
213 reads
If you are migrating a data warehouse, there is a question worth asking before you start: should you recreate the existing solution on the new platform, or use the...
2026-10-26 (first published: 2026-10-22)
1,206 reads
By Brian Kelley
I once kept a gratitude journal and I still have a task on my...
By Arun Sirpal
The goal is simple: register AgentDBA as an MCP server in Claude Code, so...
By Steve Jones
I was excited to try out the latest release of SSMS, v22.12.1 for this...
Hi everyone, We previously used the Microsoft Access Database Engine 2016 (ACE) provider. As...
Hello, We recently migrated a database from SQL Server 2014 to SQL Server 2022....
Comments posted to this topic are about the item Detecting Outliers in Power BI...
I have a few tables in my SQL 2025 database:
CREATE TABLE [dbo].[Customer] ( [CustomerID] [int] NOT NULL, [CustomerName] [varchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [AddressKey] [int] NULL, [CustomerStatus] [int] NULL, [CustomerContact] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [ContactEmail] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [PreferredName] [char] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[Customer] ADD CONSTRAINT [CustomerPK] PRIMARY KEY CLUSTERED ([CustomerID]) ON [PRIMARY] GO CREATE TABLE [dbo].[Orders] ( [OrderID] [int] NOT NULL, [CustomerID] [int] NOT NULL, [ProductID] [int] NOT NULL, [OrderDate] [date] NOT NULL, [Quantity] [int] NOT NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[Orders] ADD CONSTRAINT [PK__Orders__C3905BAFE0146D59] PRIMARY KEY CLUSTERED ([OrderID]) ON [PRIMARY] GO ALTER TABLE [dbo].[Orders] ADD CONSTRAINT [FK_Orders_Customers] FOREIGN KEY ([CustomerID]) REFERENCES [dbo].[Customers] ([CustomerID]) GO ALTER TABLE [dbo].[Orders] ADD CONSTRAINT [FK_Orders_Products] FOREIGN KEY ([ProductID]) REFERENCES [dbo].[Products] ([ProductID]) GO CREATE TABLE dbo.CustomerReturn ( EntryID INT NOT NULL CONSTRAINT CustomerReturnPK PRIMARY KEY , CustomerID INT , ReturnDate DATETIME , OrderID INT NOT NULL ) GOThere are multiple rows in all these tables. I am trying to find how many customers have never returned anything, and I run this:
SELECT count(*)
FROM dbo.Customer
WHERE CustomerID NOT IN
(
SELECT CustomerID FROM dbo.CustomerReturn
);
I get zero rows, but I know there are customers who have not returned anything. What is wrong? See possible answers