你可能感兴趣的试题
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 学生 WHERE 出生日期>={^1988-09-10} AND 性别="女" SELECT * FROM 学生 WHERE 出生日期<={^1988-09-10} AND 性别="女" SELECT * FROM 学生 WHERE 出生日期>={^1988-09-10} OR 性别="女" SELECT * FROM 学生 WHERE 出生日期<={^1988-09-10} OR 性别="女/
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学生WHEREYEAR(出生日期)=22 CREATE VIEW AGE LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
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
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学生WHERE出生日期>={^1988-09-10}AND性别="女" SELECT*FROM学生WHERE出生日期<={^1988-09-10}AND性别="女" SELECT*FROM学生WHERE出生日期>={^1988-09-10}OR性别="女" SELECT*FROM学生WHERE出生日期<={^1988-09-10}OR性别="女/
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
直接修改该查询程序 分解学生关系为学生1(学号,姓名,性别,出生日期)和学生2(学号,身份证号,籍贯,家庭所在地),并修改该查询程序 分解学生关系为学生1(学号,姓名,性别,出生日期)和学生2(学号,身份证号,籍贯,家庭所在地),并构建“学生”视图,该查询程序不做修改 创建学生关系上的视图学生1(学号,姓名,性别,出生日期),该查询程序不做修改
SELECT * FROM 学生 WHERE 出生日期>={^1982-03-20} AND 性别="男" SELECT * FROM 学生 WHERE 出生日期<={^1982-03-20} AND 性别="男" SELECT * FROM 学生 WHERE 出生日期>={^1982-03-20} OR 性别="男" SELECT * FROM 学生 WHERE 出生日期<={^1982-03-20} OR 性别="男/
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
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学生WHEREYEAR(出生日期)=22 CREATE VIEW AGE LIST AS STUDENT;
SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生;
SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
SELECT学号,姓名 FROM student s WHERE NOT EXISTS
(SELECT*FROM score sc WHERE sc.学号=s.学号 AND 成绩<85) SELECT学号,姓名 FROM student s WHERE NOT EXISTS
(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 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 s.学号,姓名,课程名,成绩
FROM student s,score sc,course c
WHERE s.学号=sc.学号,sc.课程号=c.课程号,院系=’计算机系’ SELECT学号,姓名,课程名,成绩
FROM student s,score sc,course c
WHERE s.学号=sc.学号AND sc.课程号=c.课程号AND院系=’计算机系’ SELECT s.学号,姓名,课程名,成绩
FROM(student s JOIN score se 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院系=’计算机系’
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