o, lsf没有问题,是main query的两个table alias. 问题出在

来源: 2012-08-08 20:09:14 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

documentation_level_desc in the first sub query has been aliased  as cmdm_doc_type, and  SPECIAL_FEATURE_CODE in the second sub query has been aliased as Harp_CODE. Therefore in the main where clause the original field names can not be used, instead their alias names should be used.