- select A.实际开始,A.开发单位,A.计划代号,A.计划名称,A.实际结束,A.计划状态,B.角色,B.值
- FROM (SELECT 实际开始,开发单位,计划代号,计划名称,实际结束,计划状态,SUM(实际工时) FROM ['09耗时表$'] GROUP BY 实际开始,开发单位,计划代号,计划名称,实际结束,计划状态) A,
- (SELECT 计划代号,角色,实际工时 AS 值 FROM ['09耗时表$'] UNION ALL
- SELECT 计划代号,"累计总工时",累计总工时 FROM [基本表$] UNION ALL
- SELECT 计划代号,"差旅",差旅 FROM [计划费用表$] UNION ALL
- SELECT 计划代号,"物料",物料 FROM [计划费用表$] UNION ALL
- SELECT 计划代号,"测试",测试 FROM [计划费用表$] UNION ALL
- SELECT 计划代号,"其他",其他 FROM [计划费用表$] UNION ALL
- SELECT 计划代号,"合计",合计 FROM [计划费用表$])B
- WHERE A.计划代号=B.计划代号
复制代码 |