• 2022-06-16
    已知三个关系:S(学号,姓名,性别),C(课程编号,课程名称,学时),SC(学号,课程编号,分数),若要查询所有选了课的学生的学号和姓名,下列语句正确的是( )。
    A: select 学号,姓名 from s where exists (select*from sc where s.学号=sc.学号)
    B: select 学号,姓名 from s where 学号 exists(select * from sc where s.学号=sc.学号)
    C: select 学号,姓名 from s
    D: select 学号,姓名 from s where 学号 in (select* from sc)
  • 举一反三