查询每个系中年龄最大的学生名单,要求输出系名、学生姓名及出生年月。 用数据库语句如何实现

2025-05-11 14:21:06
推荐回答(1个)
回答1:

select 系名, 学生姓名, 出生年月
from 表名
where (系名, 出生年月) in (select 系名, min(出生年月) from 表名 group by 系名)