I'm having a question, I am building up a query.
select top 10 usr.firstname, usr.lastname, count(doc.modifiedBy) as modified_items,
count(doc.createdDate) as created_items
from document doc
where doc.active = 't'
group by usr.firstname, usr.lastname
order by doc.modified_items desc
But I want to sum two counts that are in select so something like this.
select top 10 usr.firstname, usr.lastname, sum(count(doc.modifiedBy), count(doc.createdDate))
count(doc.modifiedBy) + count(doc.createdDate)?