Why is it that in SQL Server I can\'t do this:
select sum(count(id)) as \'count\'
from table
But I can do
select sum(x.
i would like to know what your expected result in this sql
select sum(count(id)) as 'count'
from table
when you use the count function, only 1 result(total count) will be return. So, may i ask why you want to sum the only 1 result.
You will surely got the error because an aggregate function cannot perform on an expression containing an aggregate or a subquery.