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 think you can write the sql query, which produces 'count' of rows for the required output. Functions do not take aggregated functions like 'sum' or aggregated subquery. My problem was resolved by using a simple sql query to get the count out....