select convert(varchar(7),adddate,120) 'commision' , count(*) from wms.commision
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'commisionline', count(*) from wms.commisionline
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'document' , count(*) from document.document
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'documentline', count(*) from document.documentline
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'invoice', count(*) from document.invoice
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'invoiceline', count(*) from document.invoiceline
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'order', count(*) from document.[order]
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc
select convert(varchar(7),adddate,120) 'orderline', count(*) from document.orderline
where adddate > getdate()-100 group by convert(varchar(7),adddate,120) order by 1 desc