问题详情

答题翼 > 问答 > 远程教育 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()


根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()

A select * from student where age< avg(age)

B select * from student having age< avg(age)

C select * from student a where a.age< (select avg(b.age) from student b)

D select * from student a where (select avg(b.age) from student b ) >= a.age

参考答案
您可能感兴趣的试题