|
SELECT [Sheet1$].问卷编码, [Sheet1$].部门代码, [Sheet1$].部门, [Sheet1$].小部门, T4.年龄, T4.工龄, T4.工资, [Sheet1$].题目所属, [Sheet1$].题目, [Sheet1$].得分
FROM [Sheet1$] LEFT JOIN (SELECT T1.问卷编码, T1.年龄, T2.工龄, T3.工资
FROM (SELECT DISTINCT [Sheet1$].问卷编码, N.得分 AS 年龄
FROM [Sheet1$], [Sheet1$] N
WHERE [Sheet1$].问卷编码 = N.问卷编码 AND ((N.题目='第1.2题我的年龄是'))) T1, (SELECT DISTINCT [Sheet1$].问卷编码, N.得分 AS 工龄
FROM [Sheet1$], [Sheet1$] N
WHERE [Sheet1$].问卷编码 = N.问卷编码 AND ((N.题目='第1.4题我在公司的大约工龄是'))) T2, (SELECT DISTINCT [Sheet1$].问卷编码, N.得分 AS 工资
FROM [Sheet1$], [Sheet1$] N
WHERE [Sheet1$].问卷编码 = N.问卷编码 AND ((N.题目='第1.3题我的总月薪是'))) T3
WHERE T1.问卷编码=T2.问卷编码 AND T2.问卷编码=T3.问卷编码) T4 ON [Sheet1$].问卷编码=T4.问卷编码
上网问问题.rar
(10.12 KB, 下载次数: 8)
|
|