-- 7、查询学过编号为“01”的课程并且也学过编号为“02”的课程的学生的学号、姓名(重点)
-- 法一错误
-- 相同字段c_id不可能即是01又是02
SELECT a.c_id,b.s_id,b.s_name
FROM
score as a
INNER JOIN
student as b ON a.s_id=b.s_id
WHERE a.c_id&#
-- 7、查询学过编号为“01”的课程并且也学过编号为“02”的课程的学生的学号、姓名(重点)
-- 法一错误
-- 相同字段c_id不可能即是01又是02
SELECT a.c_id,b.s_id,b.s_name
FROM
score as a
INNER JOIN
student as b ON a.s_id=b.s_id
WHERE a.c_id&#