根据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

热搜:sql删除表中数据2个表联查