摘要:
-------------------------------------1使用子查询实现命题查询出所有没有参加考试的同学的学生编号,姓名。use MySchoolselect * from Studentselect * from Scoreselect sNo,sName from Studentwhere sId not in(select studentId from Score)--2使用联接重做:查询出所有没有参加考试的同学的学生编号,姓名。 select sNo,sName from( select sNo,sName,scoreId from Student left out. 阅读全文