50个查询系列-第11个查询:查询至少有一门课与学号为“1001”的同窗所学相同的同窗的学号和姓名;...

select distinct( tblstudent.StuId) from tblstudent , tblscore where tblscore.CourseId in ( select tblscore.CourseId from tblscore where tblscore.StuId='1001' ) and tblstudent.StuId=tblscore.StuId
相关文章
相关标签/搜索