2

Both query return the same output:

select COUNT(id) from Employee

select COUNT(All(id)) from Employee

So what is the difference in SQL-Server 2008R2?

10

There is no difference. ALL is the default keyword, as opposed to DISTINCT.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.