记录存放形式: 编号 出诊时间 治疗结果 001 2002-05-01 抢救 002 2002-05-02 转院 003 2002-06-01 死亡 统计一个月: select count(编号) as 出诊人数,iif(治疗结果='抢救',1,0) as 抢救人数,iif(治疗结果='死亡',1,0) as 死亡人数,iif(治疗结果='转院',1,0) as 转院人数 from tablename where month(出诊时间)=5 and year(出诊时间)=2002
统计一年12个月 select month(出诊时间) as 出诊月份,count(编号) as 出诊人数,iif(治疗结果='抢救',1,0) as 抢救人数,iif(治疗结果='死亡',1,0) as 死亡人数,iif(治疗结果='转院',1,0) as 转院人数 from tablename where year(出诊时间)=2002 group by month(出诊时间)
Month(出诊日期)就可以算出了啊
编号 出诊时间 治疗结果
001 2002-05-01 抢救
002 2002-05-02 转院
003 2002-06-01 死亡 统计一个月:
select count(编号) as 出诊人数,iif(治疗结果='抢救',1,0) as 抢救人数,iif(治疗结果='死亡',1,0) as 死亡人数,iif(治疗结果='转院',1,0) as 转院人数 from tablename where month(出诊时间)=5 and year(出诊时间)=2002
select month(出诊时间) as 出诊月份,count(编号) as 出诊人数,iif(治疗结果='抢救',1,0) as 抢救人数,iif(治疗结果='死亡',1,0) as 死亡人数,iif(治疗结果='转院',1,0) as 转院人数 from tablename where year(出诊时间)=2002 group by month(出诊时间)
导入一般的文档 或也直接挂上 MS SQL 或其他数据库取数据, 我相信你可以胜任的.