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

学生表:S(学号,姓名,性别,出生日期,院系) 课程表:C(课程号,课程名,学时) 选课成绩表:SC(学号,课程号,成绩)在上述表中,出生日期数据类型为日期型,学时和成绩为数值型,其他均为字符型。用 ...

查看本题答案

你可能感兴趣的试题

SELECT学号,姓名FROM student s WHERE NOT EXISTS  (SELECT*FROM score se WHERE S 学号=s.学号码AND成绩<85)  SELECT学号,姓名FROM student S WHERE NOT EXISTS  (SELECT*FROM score sc WHERE S 学号=s.学号码AND成绩>=85)  SELECT学号,姓名FROM student s,score sc  WHERE s.学号=sc.学号AND成绩>=85  SELECT学号,姓名FROM student s,score sc  WHERE S.学号=sc.学号AND ALL成绩>=85  
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 S.学号,姓名,平均成绩 FROM S,SC; WHERE S.学号=SC.学号; GROUP BY S.学号 HAVING COUNT(*)>=5 ORDER BY 平均成绩 DESC  SELECT 学号,姓名,AVG(成绩) FROM S,SC; WHERE S.学号=SC.学号 AND COUNT(*)>=5; GROUP BY 学号 ORDER BY 3 DESC  SELECT S.学号,姓名,AVG(成绩) 平均成绩 FROM S,SC; WHERE S.学号=SC.学号 AND COUNT(*)>=5; GROUP BY S.学号 ORDER BY 平均成绩 DESC  SELECT S.学号,姓名,AVG(成绩) 平均成绩 FROM S,SC; WHERE S.学号=SC.学号; GROUP BY S.学号 HAVING COUNT(*)>=5 ORDER BY 3 DESC  
SELECT 学号,姓名 FROM S WHERE NOT EXISTS; (SELECT*FROM SC WHERE S学号=学号 AND 成绩<85)  SELECT 学号,姓名FROM S WHERE NOT EXISTS; (SELECT*FROM SC WHERE S学号=学号AND成绩>=85)  SELECT学号,姓名FROM S,SC WHERE 学号=S学号 AND成绩>=85  SELECT 学号,姓名 FROM S,SC WHERE 学号=S学号AND ALL成绩>=85  
CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生 SELECT学号,姓名,年龄FROMAGE LIST WHERE年龄=22  CREATE VIEWAGE_LIST AS; SELECT学号,姓名,YEAR(出生日期)FROM学生 SELECT学号,姓名,年龄FROM AGE LIST WHERE YEAR(出生日期)=22  CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE0)-YEAR(出生日期)年龄FROM学生 SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22  CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生 SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22  
DELETE FROM score WHERE课程号="Cl"AND学号="20091001"  DELETE FROM score WHERE课程号=”Cl”OR学号="20091001"  DELETE score WHERE课程号="Cl"AND学号="20091001"  DELETE score课程号="Cl"OR学号="20091001"  
SELECT学号,姓名FROM student s WHERE NOT EXISTS
(SELECT*FROM score sc WHERE sc.学号=s.学号码AND成绩<85)  
SELECT学号,姓名FROM student s WHERE NOT EXlSTS
(SELECT*FROM score sc WHERE sc.学号=s.学号码AND成绩>=85)  
SELECT学号,姓名FROM student s,score sc
WHERE s.学号=sc.学号AND成绩>=85  
SELECT学号,姓名FROM student s,score sc
WHERE s.学号=sc.学号AND ALL成绩>=85  
SELECT姓名性别,年龄FROM学生WHERE年龄<22  SELECT姓名,性别,YEAR(DATE())-YEAR(出生日期)as年龄FROM学生 WHERE YEAR(出生日期)<22  SELECT姓名,性别,YEAR(DATE())-YEAR(出生日期)as年龄FROM学生 WHERE;YEAR(DATE()).YEAR(出生日期)<22  SELECT姓名,性别,年龄=YEAR(DATE())-YEAR(出生日期)FROM学生 WHERE YEAR(DATE())-YEAR(出生日期)<22  
DELETE FROM score WHERE课程号=’C1’AND学号=’20091001’  DELETE FROM score WHERE课程号=’C1’OR学号=’20091001’  DELETE FROM scorc WHERE课程号=’C1’AND学号=’20091001’  DELETE score课程号=’C1’AND学号=’20091001’  
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  
查询1982年10月6日出生的学生信息,正确的命令是______。
      SELECT*FROM学生WHERE出生日期="1982-10-6"  SELECT*FROM学生WHERE出生日期=1968-10-6  
  • SELECT*FROM学生WHERE出生日期={^1982-10-6  
DELETE FROM学生WHERE学号="1001"  DROP FROM学生FOR学号="1001"  DROP FROM学生WHERE学号="1001"  DELETE FROM学生FOR学号="1001"  
SELECT s.学号,姓名,课程名,成绩
  FROM student s,score sc。course c
  WHERE s.学号=sc.学号,sc.课程号=c.课程号,院系="计算机系"  
SELECT学号,姓名,课程名,成绩
  FROM student s,score sc,course C
  WHERE s.学号=S学号AND sc.课程号=c.课程号AND院系="计算机系"  
SELECT s.学号,姓名,课程名,成绩
  FROM(student s JOIN score sc ON s.学号=sc.学号)
  JOIN course c ON sc.课程号=c.课程号
wHERE院系="计算机系"  
SELECT学号,姓名,课程名,成绩
  FROM(student s JOIN score sc ON s.学号=sc.学号)
  JOIN course c ON sc.课程号=c.课程号
  WHERE院系="计算机系"  
SELECT学号,姓名FROM S WHERE NOT EXISTS; (SELECT*FROM SC WHERE S学号=学号AND成绩<85)  SELECT学号,姓名FROM S WHERE NO TEXISTS; (SELECT*FROM SC WHERE S学号=学号AND成绩>=85)  SELECT学号,姓名FROMS,SC; WHERE 学号=S学号AND成绩>=85  SELECT学号,姓名FROMS,SC; WHERE 学号=S学号AND ALL成绩>=85  
CREATE VIEW AGE_LIST AS;
SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生
SELECT学号,姓名,年龄FROMAGE LIST WHERE年龄=22  
CREATE VIEWAGE_LIST AS;
SELECT学号,姓名,YEAR(出生日期)FROM学生
SELECT学号,姓名,年龄FROM AGE LIST WHERE YEAR(出生日期)=22  
CREATE VIEW AGE_LIST AS;
SELECT学号,姓名,YEAR(DATE0)-YEAR(出生日期)年龄FROM学生
SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22  
CREATE VIEW AGE_LIST AS;
SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生
SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22  
SELECT学号,姓名 FROM S WHERE NOT EXISTS;
(SELECT*FROM SC WHERE SC.学号=S.学号 AND 成绩<851  
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学号,姓名,平均成绩FROM S,SC; WHERE 学号=S学号; GROUP BY 学号HAVING COUNT(*)>=5 ORDER BY平均成绩DESC  SELECT学号,姓名,AVG(成绩)FROMS,SC; WHERE 学号=S学号AND COUNT(*)>=5; GROUP BY学号ORDER BY 3 DESC  SELECT学号,姓名,AVG(成绩)平均成绩FROM S,SC; WHERE 学号;S学号AND COUNT(*)>=5; GROUP BY 学号ORDER BY平均成绩DESC  SELECT学号,姓名,AVG(成绩)平均成绩FROMS,SC, WHERE 学号:S学号; GROUP BY学号HAVING COUNT(*)7=5 ORDER BY 3 DESC  
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学号,姓名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  
CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM AGE_LIST WHERE年龄=22  CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(出生日期)FROM学生: SELECT学号,姓名,年龄FROM AGE_LIST WHERE YEAR(出生日期)=22  CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22  CREATE VIEW AGE_LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE()).YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22  

热门试题

更多