• 2022-06-07
    下列查询中,属于相关子查询的有()。
    A: SELECT * FROM student WHERE sno IN (SELECT sno FROM sc WHERE cno='1');
    B: SELECT sno, cno FROM SC x WEHRE grade>=(SELECT AVG(grade) FROM SC y WHERE y.sno = x.sno);
    C: SELECT sname FROM student WHERE EXISTS(SELECT * FROM sc WHERE sno=student.sno AND cno='1');
    D: SELECT sname FROM student WHERE NOT EXISTS(SELECT * FROM course WHERE NOT EXISTS(SELECT * FROM sc WHERE sc.sno=student.sno AND sc.cno=course.cno));
  • 举一反三