it's easy, take away count
run this
SELECT 1 FROM Employees;
SELECT 4 FROM Employees;
SELECT 5 FROM Employees;
SELECT 100 FROM Employees;
as you can see the result is a bunch of numbers that are always the same
when you do distinct
for example
SELECT distinct 100 FROM Employees;
you only get one row, that's why when you do count(distinct 4) you get 1
------------------------------------------
http://sqlservercode.blogspot.com/