|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- SELECT "A项目" AS 项目名称,报销所属月份,发票情况,合计*1 AS [备用金开支(合计)],项目部办公开支*1 AS 项目部办公开支金额,[房租、水电费]*1 AS [房租、水电费金额],自聘人员工资*1 AS 自聘人员工资金额,接待费*1 AS 接待费金额,补贴费*1 AS 补贴费金额,施工用主要材料*1 AS 施工用主要材料金额,施工用零星材料*1 AS 施工用零星材料金额,[日常餐费、伙食费]*1 AS [日常餐费、伙食费金额],加班餐费*1 AS 加班餐费金额,零星人工费*1 AS 零星人工费金额,零星机械台班费*1 AS 零星机械台班费金额,其它费用*1 AS 其它费用金额 FROM [A项目$] WHERE 报销所属月份<>"合计" AND 报销所属月份 IS NOT NULL
- UNION ALL
- SELECT "B项目" AS 项目名称,报销所属月份,发票情况,合计*1 AS [备用金开支(合计)],项目部办公开支*1 AS 项目部办公开支金额,[房租、水电费]*1 AS [房租、水电费金额],自聘人员工资*1 AS 自聘人员工资金额,接待费*1 AS 接待费金额,补贴费*1 AS 补贴费金额,施工用主要材料*1 AS 施工用主要材料金额,施工用零星材料*1 AS 施工用零星材料金额,[日常餐费、伙食费]*1 AS [日常餐费、伙食费金额],加班餐费*1 AS 加班餐费金额,零星人工费*1 AS 零星人工费金额,零星机械台班费*1 AS 零星机械台班费金额,其它费用*1 AS 其它费用金额 FROM [B项目$] WHERE 报销所属月份<>"合计" AND 报销所属月份 IS NOT NULL
- UNION ALL
- SELECT "C项目" AS 项目名称,报销所属月份,发票情况,合计*1 AS [备用金开支(合计)],项目部办公开支*1 AS 项目部办公开支金额,[房租、水电费]*1 AS [房租、水电费金额],自聘人员工资*1 AS 自聘人员工资金额,接待费*1 AS 接待费金额,补贴费*1 AS 补贴费金额,施工用主要材料*1 AS 施工用主要材料金额,施工用零星材料*1 AS 施工用零星材料金额,[日常餐费、伙食费]*1 AS [日常餐费、伙食费金额],加班餐费*1 AS 加班餐费金额,零星人工费*1 AS 零星人工费金额,零星机械台班费*1 AS 零星机械台班费金额,其它费用*1 AS 其它费用金额 FROM [C项目$] WHERE 报销所属月份<>"合计" AND 报销所属月份 IS NOT NULL
- UNION ALL
- SELECT "D项目" AS 项目名称,报销所属月份,发票情况,合计*1 AS [备用金开支(合计)],项目部办公开支*1 AS 项目部办公开支金额,[房租、水电费]*1 AS [房租、水电费金额],自聘人员工资*1 AS 自聘人员工资金额,接待费*1 AS 接待费金额,补贴费*1 AS 补贴费金额,施工用主要材料*1 AS 施工用主要材料金额,施工用零星材料*1 AS 施工用零星材料金额,[日常餐费、伙食费]*1 AS [日常餐费、伙食费金额],加班餐费*1 AS 加班餐费金额,零星人工费*1 AS 零星人工费金额,零星机械台班费*1 AS 零星机械台班费金额,其它费用*1 AS 其它费用金额 FROM [D项目$] WHERE 报销所属月份<>"合计" AND 报销所属月份 IS NOT NULL
- UNION ALL
- SELECT "E项目" AS 项目名称,报销所属月份,发票情况,合计*1 AS [备用金开支(合计)],项目部办公开支*1 AS 项目部办公开支金额,[房租、水电费]*1 AS [房租、水电费金额],自聘人员工资*1 AS 自聘人员工资金额,接待费*1 AS 接待费金额,补贴费*1 AS 补贴费金额,施工用主要材料*1 AS 施工用主要材料金额,施工用零星材料*1 AS 施工用零星材料金额,[日常餐费、伙食费]*1 AS [日常餐费、伙食费金额],加班餐费*1 AS 加班餐费金额,零星人工费*1 AS 零星人工费金额,零星机械台班费*1 AS 零星机械台班费金额,其它费用*1 AS 其它费用金额 FROM [E项目$] WHERE 报销所属月份<>"合计" AND 报销所属月份 IS NOT NULL
- UNION ALL
- SELECT "F项目" AS 项目名称,报销所属月份,发票情况,合计*1 AS [备用金开支(合计)],项目部办公开支*1 AS 项目部办公开支金额,[房租、水电费]*1 AS [房租、水电费金额],自聘人员工资*1 AS 自聘人员工资金额,接待费*1 AS 接待费金额,补贴费*1 AS 补贴费金额,施工用主要材料*1 AS 施工用主要材料金额,施工用零星材料*1 AS 施工用零星材料金额,[日常餐费、伙食费]*1 AS [日常餐费、伙食费金额],加班餐费*1 AS 加班餐费金额,零星人工费*1 AS 零星人工费金额,零星机械台班费*1 AS 零星机械台班费金额,其它费用*1 AS 其它费用金额 FROM [F项目$] WHERE 报销所属月份<>"合计" AND 报销所属月份 IS NOT NULL
复制代码
|
|