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

数据库中有学生表Student(Sno,Sname,Ssex,Sage,Sdept),各属性分别表示为学号,姓名,性别,年龄,所在系;学生选课表SC(Sno,Cno,Grade),各属性分别表示为学号...

查看本题答案

你可能感兴趣的试题

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 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*  
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  WHFRF Teacher=’LIU’))  SELECT Sname  FROM S WHERE Ssex=’F’ AND EXISTS(SELECT*  FROM SC  WHERE SC.Sno=S.Sno AND EXISTS  
SELECT sno FROM sc WHERE sname="数据库"AND grade=MAX(grad  SELECT sno FROM sc FOR sname="数据库"OR grade>=MAX(grad  SELECT sno FROM sc WHERE sname="数据库"AND grade=(SELECT MAX(gradFROM s  SELECT sno FROM sc FOR sname="数据库"OR grade=(SELECT MAX(gradFROM s  
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 *  
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 Sname FROM S,SC,C WHERE Sno=SSno AND SCno=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 SSno=Sno AND EXISTS (SELECT* FROM C WHERE Teacher=‘LIU’))  SELECT Sname FROM S WHERE Ssex=‘F’AND EXISTS(SELECT* FROM SC WHERE SSno=Sno AND EXISTS (SELECT* FROM C WHERE Cno=SCno AND Teacher=‘LIU’))  

热门试题

更多