DataTable da = CommonBLL.GetList("*", "sys_dict", "IfState=1 and DictTypeId=14"); string strField = "CACCNUM as 账号账号,Loannumber as 借据号,BILLDATE as 借款时间,CAName as 借款人姓名,CPOSITION as 质押商品房位置,LoanAmount as 借款总额,"; ; i…
--根据每个部门来统计部门工资总和 select deptid, sum(sal) 工资合计 from emp group by deptid; --根据每个部门来统计部门工资总和select deptid, 工资合计, sum(工资合计) over() as 总合计 from (select deptid, sum(sal) 工资合计 from emp group by deptid) x; select deptid 部门, 工资合计, 总…