“查询计算机科学系年龄大于19岁的学生”的SQL语句为()。


“查询计算机科学系年龄大于19岁的学生”的SQL语句为()。

A.SELECT * FROM S WHERE SDEP = ‘CS’ EXCEPT SELECT * FROM S WHERE SAGE<=19;

B.SELECT * FROM S WHERE SDEP = 'CS' AND SAGE > 19;

C.SELECT * FROM S WHERE SDEP = 'CS' AND SAGE <= 19;

D.SELECT * FROM S WHERE SDEP != 'CS' AND SAGE <= 19;

正确答案:SELECT * FROM S WHERE SDEP = ‘CS’ EXCEPT SELECT * FROM S WHERE SAGE<=19;;SELECT * FROM S WHERE SDEP = 'CS' AND SAGE > 19;


Tag:数据库系统概论 语句 计算机科学 时间:2022-01-29 19:41:07