oracle语句如何转换为access语句,求教高人…
select d.jh,a.gj yg0_gj1,a.gs yg0_25, b.gj yg0_gj2,b.gs yg0_22, c.gj yg0_gj3,c.gs yg0_19,nvl(a.gs,0)+nvl(b.gs,0)+nvl(c.gs,0) yg0_xj1 from (select jh, gj, count(jh) gs from ys_ddh013 where gzxl = 1 and ggxh like '%25%' and jh=':tj_jh' and wgrq= (select max(wgrq)from ys_ddh013 where jh=':tj_jh' and wgrq < to_date(':tj_wgrq','yyyy-mm-dd')) group by jh,gj) a,(select jh, gj, count(jh) gs from ys_ddh013 where gzxl = 1 and ggxh like '%22%' and jh=':tj_jh' and wgrq= (select max(wgrq)from ys_ddh013 where jh=':tj_jh' and wgrq < to_date(':tj_wgrq','yyyy-mm-dd')) group by jh,gj) b,(select jh, gj, count(jh) gs from ys_ddh013 where gzxl = 1 and ggxh like '%19%' and jh=':tj_jh' and wgrq= (select max(wgrq)from ys_ddh013 where jh=':tj_jh' and wgrq < to_date(':tj_wgrq','yyyy-mm-dd')) group by jh,gj) c, (select ':tj_jh' jh from dual) d where d.jh =b.jh(+) and d.jh=c.jh(+) and d.jh=a.jh(+)