TechUpdate Kosova (13th May 2009)
Yesterday, in Prishtina - capital city of Kosova, has been held the TechUpdate Seminar 2009 from Microsoft, organized from the Microsoft...
2009-05-14
1,029 reads
Yesterday, in Prishtina - capital city of Kosova, has been held the TechUpdate Seminar 2009 from Microsoft, organized from the Microsoft...
2009-05-14
1,029 reads
Hmm, SQL Server 2008 is completed everyday till possible new versioin. So know we have available the SQL Server 2008...
2009-05-12
623 reads
At the end of August 2009 will organize the Software Freedom Kosova 2009, the big event for the Open Source...
2009-05-08
469 reads
I just recieve the announcement for the Mircosoft event TechUpdate 2009, in Prishtina capital city of Kosova! The event will...
2009-05-06
478 reads
Yep, yesterday in Prishtina, capital city of Kosova was held the event named, Oracle Day in Kosova! It was very...
2009-05-06
534 reads
The Best 10 IT Certification
Every IT Technology has the importance and positive values to use for the business.So the people...
2009-04-29
1,600 reads
Sure that many informations that we can have from the SQL Server 2008, are organized in system views in each...
2009-04-17
925 reads
Hi everyone!
Service Pack 1 for SQL Server 2008 has been released and now is available for download here
Some details:
- Slipstream...
2009-04-08
623 reads
Hi everyone, just little info that we have available the Service Pack 1 for SQL Server2008!
About overview, instructions, system...
2009-03-12
546 reads
Just to announced that we have now available the comulative update package 3 for SQL Server 2008!
This Update package...
2009-01-27
1,479 reads
By Steve Jones
I’ve become an EV guy. I was talking with a friend who was selling...
In a previous post I talked about how we can use T-SQL Snapshot Backups...
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
Comments posted to this topic are about the item Detecting Outliers in Power BI...
Comments posted to this topic are about the item Missing Returns
Comments posted to this topic are about the item Nobody Forgot Math With Calculators
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