可实现查询“选修C2(C2为课程号)课程的学生姓名”的SQL语句有:
A. select snamefrom student,scwhere student.sno=sc.sno and cno='C2'
B. select snamefrom studentwhere sno in(select sno from sc where sc.sno=student.sno and cno='C2')
C. select snamefrom studentwhere exists(select * from sc where sc.sno=student.sno and cno='C2')
D. select snamefrom student, (select sno from sc where cno='C2') as s1where student.sno=s1.sno