Mysql 所有教师中年龄最大的教师(从出生日期算起)
显示自出生日期起在所有教师中年龄最大的教师的姓名Mysql 所有教师中年龄最大的教师(从出生日期算起),mysql,Mysql,显示自出生日期起在所有教师中年龄最大的教师的姓名 子查询和MIN是一种方法 Select name from teacher where birthdate IN (select MIN(birthdate) from teacher); 如果没有副本 然后使用 否则,您也可以使用min Select name from teacher where birthdate IN (select MIN(birthdate) from teacher); Maxbirthdate给出了最年
子查询和MIN是一种方法
Select name from teacher where
birthdate IN (select
MIN(birthdate) from teacher);
如果没有副本
然后使用
否则,您也可以使用min
Select name from teacher where
birthdate IN (select
MIN(birthdate) from teacher);
Maxbirthdate给出了最年轻的老师的名字,应该是MinBirthDate当你投否定票时,这个问题似乎与MySQL有关。至少指定原因。我是根据这个回答的 到mssql服务器
Select name from teacher where
birthdate IN (select
MIN(birthdate) from teacher);