当前位置: X题卡 > 所有题目 > 题目详情

设有关系模式SC(sno,cno,grade),查询既选修了c1又选修了c2课程的学生学号,正确的SQL命令是()。

查看本题答案

你可能感兴趣的试题

SELECT sno FROM sc WHERE cno=“c1”AND cno=“c2”  SELECT sno FROM sc WHERE cno=“c1”AND SELECT sno FROM sc WHERE cno=“c2”  SELECT sno FROM sc WHERE cno=“c1”UNION SELECT sno FROM sc WHERE cno=“c2”  SELECT sno FROM sc WHERE cno=“c1”AND sno IN(SELECT sno FROM sc WHERE cno=“c2”)  
(Sno,Tno)和{Cno,Cname,Grade,Tno,Tname}  (Sno, Cno, Tno)和{Sno, Sname, Sex, Birthday, Cno}  (Sno, Cno)和{Sno, Sname, Sex, Birthday, Cno, Cname, Grade}  (Sno, Cno, Tno)和{Sno, Sname, Sex, Birthday, Tno, Tname}  
SELECT sno,cno FROM sc WHERE grade=NULL  SELECT sno,cno FROM sc WHERE grade IS‘’  SELECT sno,cno FROM sc WHERE grade IS NULL  SELECT sno,cno FROM sc WHERE grade=‘’  
(Sno,Tno)和Cno,Cname,Grade,Tno,Tname  (Sno, Cno,Tno) 和Sno, Sname, Sex, Birthday, Cno  (Sno, Cno)和Sno, Sname, Sex, Birthday, Cno, Cname, Grade  (Sno, Cno,Tno)和Sno, Sname, Sex, Birthday, Tno, Tname  
SNO=SC.SNO and SEX='女'and CNAME='计算机'  SNO=SC.SNO and C.CNO=SC.CNO and CNAME='计算机'  SEX='女'and CNAME='计算机'  SNO=SC.SNO and C.CNO=SC.CNO and SEX='女'and CNAME='计算机'  
INSERT INTO SC(SNO,CNO,GRADE)VALUES(′S1 01′,′C11′,′98′)  INSERT INTO SC(SNO,CNO,GRADE)VALUES(S101,C11,98)  INSERT(′S101′,′C11′,′98′)INTO SC  INSERT INTO SC VALUES(′S101′,′C11′,98)  
SEI,ECT sno FROM SC WH ERE grade BETWEEN O AND 60  SELECT sno FROM SC WHERE grade<60  SELECT sno FROM SC HAVlNG grade BETWEEN O AND 60  SELECT sno FROM SC HAVING grade<60  
SELECT sno FROM sc WHERE cno="c1"AND cno="c2"  SELECT sno FROM sc WHERE cno="cl',AND SELECT sno FROM sc WHERE cno="c2"  SELECT sno FROM sc WHERE cno="cl" UNION SELECT sno FROM sc WHER:E cno="c2"  SELECT sno FROM sc WHERE cno="cl"AND sno IN(SELECT sno FROM sc WHERE cno="c2")  
SELECT sno FROM sc WHERE cno="c1"AND cno="c2"  SELECT sno FROM sc WHERE cno="cl',AND SELECT sno FROM sc WHERE
cno="c2"  
SELECT sno FROM sc WHERE cno="cl" UNION SELECT sno FROM sc WHER:E
cno="c2"  
SELECT sno FROM sc WHERE cno="cl"AND sno IN(SELECT sno FROM sc WHERE
cno="c2")  
ALTER TABLE SC SET GRADE+10 WHERE CNO='DB'  ALTER TABLE SC SET GRADE=GRADE+10 WHERE CNO='DB'  UPDATE SC SET GRADE+10 WHERE CNO='DB'  UPDATE SC SET GRADE=GRADE+10 WHERE CNO='DB'  
SELECT SNO FROM SC WHERE CNO=′DB′AND GRADE DETWEEN 60 AND 90  SELECT SNO FROM SC WHERE CNO=′DB′OR GRADE BETWEEN 60 AND 90  SELECT SNO FROM SC WHERE CNO=′DB′AND GRADE>=60 AND 90  SELECT SNO FROM SC WHERE CNO=′DB′AND GRADE<=60 AND GRADE>=90  
(Sno,Tno)和{Cno,Cname,Grade,Tno,Tname}  (Sno, Cno,Tno) 和{Sno, Sname, Sex, Birthday, Cno}  (Sno, Cno)和{Sno, Sname, Sex, Birthday, Cno, Cname, Grade}  (Sno, Cno,Tno)和{Sno, Sname, Sex, Birthday, Tno, Tname}  
ALTER TABLE SC SET GRADE+10 WHERE CNO='DB'  ALTER TABLE SC SET GRADE=GRADE+10 WHERE CNO='DB'  UPDATE SC SET GRADE+10 WHERE CNO='DB'  UPDATE SC SET GRADE=GRADE+10 WHERE CNO='DB'  
SELECT sno,cno FROM sc WHERE grade=NULL  SELECT sno,cno FROM sc WHERE grade IS‘’  SELECT sno,cno FROM sc WHERE grade IS NULL  SELECT sno,cno FROM sc WHERE grade=‘’  
(Sno,Tno)和Cno,Cname,Grade,Tno,Tname  (Sno,Cno,Tno)和Sno,Sname,Sex,Birthday,Cno  (Sno,Cno)和Sno,Shame,Sex,Birthday,Cno,Cname,Grade  (Sno,Cno,Tno)和Sno,Sname,Sex,Birthdayr,Tno,Tname  
SELECT sno,cno FROM sc WHERE grade=NULL  SELECT sno,cno FROM sc WHERE grade IS"  SELECT sno,cno FROM sc WHERE grade IS NULL  SELECT sno,cno FROM sc WHERE grade=''  

热门试题

更多