摘要: /***人数统计Sql**/ /** 查询行政部***/ Declare @DepartID int;Declare @Alltotal int; Select @DepartID=Count(*) From Emp_Base where DepartID=2 select @Alltotal=Count(*) from emp_base SELECT SUM(@DepartID) AS DepartIDCount, SUM(@Alltotal) AS Alltotal, CAST(CONVERT (float, SUM(@DepartID)) * 100 / CONVERT (float, 阅读全文
posted @ 2013-06-10 17:03 盛开的雨季 阅读(416) 评论(0) 推荐(0) 编辑