PB中retrieve结果与在查询分析器中的结果不一致?
eracn 2007-04-26 01:15:23 select distinct a.preturn_id,
preturn_date,
a.dep_id,
c.dep_name,
pr_type
from d_productreturn a,d_productreturncontent b,c_department c
where a.preturn_id = b.preturn_id and
a.dep_id = c.dep_id and
a.preturn_status = '0' and
a.preturn_date>= '2007-4-1' and
rtrim(a.preturn_id)+rtrim(pr_type)+'1' not in
(select pr_id+in_type+if_preturn from d_boxin)
以上代码为DW的SQL语句,直接在PB检索时有数据,但将该代码COPY至查询分析器执行时无记录,怎么回事?
另,在查询分析器中用join与left join,亦可查询出正确记录。
(确定为同一数据库)