交叉表
TRANSFORM Last(tHistoryStudentAppraise.CJ) AS CJ之最后一条记录
SELECT tHistoryStudentAppraise.SFZH, tStudentInfo.XM
FROM (tAppraiseGuide INNER JOIN tHistoryStudentAppraise ON tAppraiseGuide.ZBBH = tHistoryStudentAppraise.ZBBH) INNER JOIN tStudentInfo ON tHistoryStudentAppraise.SFZH = tStudentInfo.SFZH
GROUP BY tHistoryStudentAppraise.SFZH, tStudentInfo.XM
PIVOT tAppraiseGuide.ZBMC;