你可能感兴趣的试题
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”)
SELECT sno FROM sc WHERE sname = "数据库" AND grade = MAX(grade) SELECT sno FROM sc FOR sname = "数据库" OR grade>=MAX(grade) SELECT sno FROM sc WHERE sname = "数据库" AND grade = (SELECT MAX(grade) FROM sc) SELECT sno FROM sc FOR sname = "数据库" OR grade = (SELECT MAX(grade) FROM sc)
SELECT Sname FROM S,SC,C WHERE S Sno=SC.Snn AND SC.Con=C.Con And Teacher='LTU' AND Seex='F' SELECT Sname FROM S WHERE Ssex='F' AND Sno IN (SELECT Sno FROM SC WHERE(Cno IN(SELECT Cno FROM C WHERE Teacher='LIU')) SELECT Sname FROM S WHERE Ssex='F' AND EXISTS(SELECT* FROM SC WHEPE SC.Sno=S. Sno AND EXISTS (SELECT* FROM C WHERE Teacher='LIU')) SELECT Sname FROM S WHEPE Ssex='F' AND EXISTS(SELECT* FROM SC WHERE SC.Sno=S.Sno AND EXISTS (SELECT* FROM C WHERE C Cno=SC Cno AND Teacher='LIU'))
SELECT * FROM sc WHERE grade=NULL SELECT *FROM sc WHERE grade IS'' SELECT *FROM sc WHERE grade IS NULL SELECT *FROM sc WHERE grade=''
SELECT SNAME,AGE FROM S WHERE S.S#=(SELECT SC.S#}FROM SC WHERE C.C#='MATHS') SELECT SNAME,AGEFROM SWHERE S.S#=(SELECT SC.S#}FROM SC WHERE SC.C#='MATHS') SELECT SNAME,AGE FROM S, SC WHERE S.S#=SC.S# AND SC.C#='MATHS' ORDER BY S.S# SELECT SNAME,AGE FROM S, SC WHERE S.S#=SC.S# AND SC.C#='MATHS'
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 sname="数据库"AND grade=MAX(grade) SELECT sno FROM SC FOR sname="数据库"OR grade>MAX(grade) SELECT sno FROM SC WHERE shame="数据库"AND grade=(SELECT MAX(grade)FROM sc) SELECT son FROM SC FOR sname="数据库"OR grade=(SELECT MAX(grade. FROM sc)
SELECT 学号,姓名,性别 FROM S WHERE EXISTS (SELECT * FROM SC WHERE SC.学号=s.学号 AND 成绩<=85) SELECT 学号,姓名,性别 FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE SC.学号=s.学号 AND 成绩<=85) SELECT 学号,姓名,性别 FROM S WHERE EXISTS (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩>85) SELECT 学号,姓名,性别 FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩<85)
SELECT * FROM sc WHERE grade=NULL SELECT * FROM sc WHERE grade IS “ ” SELECT * FROM sc WHERE grade=‘ ’ SELECT * FROM sc WHERE grade IS NULL
SELECT S# FROM SC WHERE C#="C2" AND GRADE> =(SELECT GRADE FROM SC WHERE C#="C2") SELECT S# FROM SC WHERE C#="C2" AND GRADE IN(SELECT GRADE FROM SC WHERE C#="C2") SELECT S# FROM SC WHERE C#="C2" AND GRADE NOT IN(SELECT GRADE FROM SC WHERE C#="C2") SELECT S# FROM SC WHERE C#="C2" AND GRADE> =ALL(SELECT GRADE FROM SC WHERE C#="C2")
SELECT 学号,姓名 FROM S WHERE NOT EXISTS; (SELECT * FROM SC WHERE SC 学号=S.学号 AND 成绩<85) SELECT 学号,姓名 FROM S WHERE NOT EXISTS; (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩>=85) SELECT 学号,姓名 FROM S,SC WHERE S.学号=SC.学号 AND 成绩>=85 SELECT 学号,姓名 FROM S,SC WHERE S.学号=SC.学号 AND ALL 成绩>=85
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”)
SELECT S.姓名,SC.课程号,SC.成绩FROM S WHERES.学号=SC.学号 SELECT S.姓名,SC.课程号,SC.成绩FROM SC WHERES.学号=SC.成绩 SELECT S.姓名,SC.课程号,SC.成绩FROM S,SC WHERE S.学号=SC.学号 SELECT S.姓名,SC.课程号,SC.成绩FROM S,SC
SELECT COUNT(DISTINCTS#)/FROM SC SELECT COUNT(S#)/FROM SC SELECTCOUNT(*)/FROM SC SELECT COUNT (DISTINCT*)/FROM SC
SELECT Sname FROM S,SC,C WHERE S.Sno=SC.Sno AND SC.Cno=C.Cno AND Teacher=‘LIU’AND Ssex=‘F’ SELECT Sname FROM S WHERE Ssex=‘F’AND Sno IN (SELECT Sno FROM SC WHERE Cno IN(SELECT Cno FROM C WHERE Teacher=‘LIU’)) SELECT Sname FROM S WHERE Ssex=‘F’AND EXISTS( SELECT * FROM SC WHERE SC.Sno=S.Sno AND EXISTS (SELECT * FROM C WHERE Teacher=‘LIU’)) SELECT Sname FROM S WHERE Ssex=‘F’AND EXISTS( SELECT * FROM SC WHERE SC Sno=S Sno AND EXISTS (SELECT * FROM C WHERE C.Cno=SC.Cno AND Teacher=‘LIU’))
SELECT 学号,姓名,性别 FROM S WHERE EXISTS (SELECT * FROM SC WHERE SC.学号=s.学号 AND 成绩<=85) SELECT 学号,姓名,性别 FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE SC.学号=s.学号 AND 成绩<=85) SELECT 学号,姓名,性别 FROM S WHERE EXISTS (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩>85) SELECT 学号,姓名,性别 FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩<85)
SELECT学号,姓名,性别FROM s WHERE EXISTS(SELECT*FROM sc WHERE SC.学号=S.学号AND成绩<=85) SELECT学号,姓名,性别FROM s WHERE NOT EXISTS(SELECT*FROM sc WHERE SC.学号=S.学号AND成绩<=85) SELECT学号,姓名,性别FROM s WHERE EXISTS(SELECT*FROM sc WHERE SC.学号=S.学号AND成绩>85) SELECT学号,姓名,性别FROM s WHERE NOT EXISTS(SELECT*FROM sc WHERE SC.学号=S.学号AND成绩<85)
SELECT 学号,姓名,性别 FROM S WHERE EXISTS (SELECT * FROM SC WHERE SC.学号=s.学号 AND 成绩<=85) SELECT 学号,姓名,性别 FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE SC.学号=s.学号 AND 成绩<=85) SELECT 学号,姓名,性别 FROM S WHERE EXISTS (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩>85) SELECT 学号,姓名,性别 FROM S WHERE NOT EXISTS (SELECT * FROM SC WHERE SC.学号=S.学号 AND 成绩<85)
SELECT*FROM sc WHERE grade=NULL SELECT*FROM sc WHERE grade IS" SELECT*FROM sc WHERE grade IS NULL SELECT*FROM sc WHERE grade=/
SELECT COUNT(DISTINCT S#)FROM SC SELECT COUNT(S#)FROM SC SELECT COUNT(*)FROM SC SELECT COUNT(DISTINCT)FROM SC