【发布时间】:2015-04-28 05:39:22
【问题描述】:
在试图找到医生的基本信息(姓名、地址电话等),他们是在诊所工作的最年轻的,但也没有辞职。
我浏览了论坛,发现最好的方法是使用内部联接,但现在它根本不返回任何信息。
select doctorid, surname, given, address, suburb, postcode, phone
from doctor
inner join (
select max(dob)
from doctor
where resigned is null);
此代码不工作,任何帮助将不胜感激。
【问题讨论】:
-
内连接语法似乎错误,您没有在此处提及您要连接的字段,@andomar 已正确纠正。