34,837
社区成员




select D.部门号,C.姓名,C.出生日期,
from
(
职工 A
where not exists
(Select * from 职工 B where A.职工号=B.职工号 and A.出生日期>B.出生日期)
) C join 部门 D on
C.部门号=D.部门号
select a.部门名,b.姓名,b.出生日期
from 部门表 as a
join 职工表 as b
on a.部门号=b.部门号
where not exists(select * from 职工表
where b.部门号=部门号 and 出生日期<b.出生日期)