kenhutchings
Programmer
Ok peeps here we go
This is the code from my sproc
SELECT TOP 100 PERCENT Business, COUNT(*) AS BCounter
FROM dbo.tblCoreData
WHERE (Mailed is null)
GROUP BY Business
ORDER BY Business
What it is supposed to do is Give be a list of all the Business Types (Business) and the count (Bcounter) in the table that have not got anything in the Mailed Column
But I just get every record in the table counted...
Any suggestions?
This is the code from my sproc
SELECT TOP 100 PERCENT Business, COUNT(*) AS BCounter
FROM dbo.tblCoreData
WHERE (Mailed is null)
GROUP BY Business
ORDER BY Business
What it is supposed to do is Give be a list of all the Business Types (Business) and the count (Bcounter) in the table that have not got anything in the Mailed Column
But I just get every record in the table counted...
Any suggestions?