做个小小的存储过程吧:
drop proc count_wz
go
create proc count_wz
as
--将几个表中需要统计的数据插入一个临时表(比如统计文章数(文章名为title),作者名)
select count(title) as title, author_name into #lsk from tableA group by author_name
insert into #lsk()
select count(title) as title, author_name from tableB group by author_name
insert into #lsk()
select count(title) as title, author_name from tableC group by author_name
...
--插入之后重新统计一下就可以输出了
select count(title) as title, author_name from #lsk group by author_name
go