题目内容
在学生关系student(sid,sname,nid)中,student的属性分别表示学号、姓名和民族编号,若要查询与张海是同一民族的学生的姓名,下列SQL语句正确的是( )。Ⅰ.SELECT s2.sname AS '姓名' FROM student s1,student s2 WHERE s1.nid=s2.nid AND s1.sname='张海'Ⅱ.SELECT sname AS '姓名' FROM student WHERE nid IN(SELECT nid FROM Student WHERE sname='张海')
查看答案
搜索结果不匹配?点我反馈