• 2022-06-05
    查询选修了课程C01或者选修了课程C02的学生姓名,下列 (8) 是正确的。
    A: select 姓名 from sc,s Where 课程号='C01' or 课程号='C02’ and sc.学号=s.学号
    B: Select 姓名 from s where 课程号='C01‘ UNION select 姓名 from s where 课程号='C02’
    C: Select 姓名 from s,sc where 课程号='C01‘ UNION select 姓名 from s,sc where 课程号='C02’
    D: Select 姓名 from s,sc where 课程号='C01‘ and s.学号=sc.学号 UNION select 姓名 from s,sc where 课程号='C02’ and s.学号=sc.学号
  • 举一反三