已知教学管理数据库中学生表结构如下:学生(学号,姓名,性别,年龄,专业),现要查询计算机专业年龄大于该专业学生平均年龄的学生的信息,则查询语句应该是()

A.select * from 学生 where 年龄>(select avg(年龄) from 学生 where 专业=计算机) B.select * from 学生 where 年龄> avg(年龄) and 专业=计算机 C.select * from 学生 where 专业=计算机 and 年龄>(select avg(年龄) from 学生) D.select * from 学生 where 专业=计算机 and 年龄>(select avg(年龄) from 学生 where 专业=计算机)

时间:2024-01-21 07:18:45

相似题目