有 两个 表 PJ3500,PJ3510
PJ3500的主键是 年度,种别
pj3510的主键是 年度,种别,变更回数要查询的数据是 PJ3500里存在,PJ3510里变更次数最大的记录条数。如果PJ3510里不存在对应数据的话,也能检索出来。
PJ3500的主键是 年度,种别
pj3510的主键是 年度,种别,变更回数要查询的数据是 PJ3500里存在,PJ3510里变更次数最大的记录条数。如果PJ3510里不存在对应数据的话,也能检索出来。
t1.年度=t2.年度 and t1.种别=t2.种别)
t1.年度=t2.年度 and t1.种别=t2.种别 where t2.变更回数=(select max(变更回数) from pj3510)
from pj3510 t1, pj3510 t2
where t1.年度 = t2.年度
and t1.种别 = t2.种别
order by t2.变更回数) t3
where rownum = 1;
where s.year_1 = t.year_1(+)
and s.type_1 = t.type_1(+)
where s.year_1 = t.year_1(+)
and s.type_1 = t.type_1(+)
引用了 (+) 后 ,max(w.change_times) as times 就失效了 。该怎么办呢
那它对应的changtimes应该是什么,现在是空的。