[img]http://dl.iteye.com/upload/picture/pic/128405/2af54070-97c9-3846-84ca-c2521ba3ab23.png[/img]
student表中数据如图:
求每个班级中年龄最小的学生的姓名
[img]http://dl.iteye.com/upload/picture/pic/128405/2af54070-97c9-3846-84ca-c2521ba3ab23.png[/img]
student表中数据如图:
求每个班级中年龄最小的学生的姓名
select 班级,姓名 from student where 生日 in(select max(s.生日) from student s group by s.班级 )