sql子句选择
select temp.学号,(select 成绩 from 六(1)班学生成绩表 where 六(1)班学生成绩表.学号=temp.学号 and 科目='数学' and 测试时间=#2012-10-1#) as 数学,(select 成绩 from 六(1)班学生成绩表 where 六(1)班学生成绩表.学号=temp.学号 and 科目='语文' and 测试时间=#2012-10-1#) as 语文 from (select distinct 学号 from 六(1)班学生成绩表) as temp