好吧,我有一个真正的问题,试图了解oracle中别名背后的逻辑。下面是该查询:oracle:别名问题,为什么不认识它?
select isbn,
b.fname,
b.lname
from bookauthor a,
author b,
(select authorid auth
from bookauthor
where isbn = (select max(isbn) maxisbn
from orderitems))
where b.authorid = auth
and isbn = maxisbn;
出于某种原因,数据库管理系统不能识别maxisbn作为别名,但如果我摆脱一切有关maxisbn,运行查询和识别别名“权威性”就好了。为什么看到一个而不是另一个?