急: 我这个是四条代码现在想合成一个代码怎么写啊???这四条代码都是互相矛盾的请大师帮忙看看谢谢了弄好了可以加分
我想吧这四条代码合成一条怎么合 啊
能合成的话能给和好后的给我吗
谢谢了
left join ( --统计
--覆盖方式ADSL交换区号无PSTN
select fldex9, count(*) as n
from tar_station t
/*where not exists (SELECT 1
FROM TAR_RELTION_SWAPAREA_STATION
where t.fldcbriefname = BUILDING_CODE)*/
WHERE NOT exists (select 1
from TAR_RELTION_SWAPAREA_STATION
where SWAPAREA_TYPE = 'PSTN'
and building_code = T.FLDCBRIEFNAME)
and t.fldisfilling = 1 -- 1填报
and t.fldbuildstatus not in ('3', '5') -- 3拆迁 5拆除
and nvl(t.isfw, ' ') <> '1' --非封网
and t.fldex29 LIKE '%3%' --带ADSL
and (t.FLDEX27 != '1' --不含--用户线接入介质为无用户线接入介质
or t.FLDEX27 is null)
AND T.FLDCNAME NOT LIKE '%未竣工%'
AND T.FLDCNAME NOT LIKE '%未覆盖%'
group by fldex9) b
on a.fldareaid = b.fldex9
left join (
-- 覆盖方式不是ADSL交换区号含PSTN
select fldex9, count(*) as n
from tar_station t,
(select distinct w.building_code
from TAR_RELTION_SWAPAREA_STATION w
&nb