please try this:
SELECT
(select (NVL(sum((t.int_bhd/100-(t
(P.INT_RADIUS_TOTHOLZ_SUB*
and int_status_sub = 3 and (str_lrt_main = :p430_str_lrt) and int_be_main = :p430_be)
FROM VT_PUNKTDATEN_JOIN P
WHERE
(P.CNT_GEBIET=:P430_cnt_GE
AND P.INT_STATUS_SUB=3
and P.STR_LRT_MAIN = :p430_str_lrt and int_be_main = :p430_be)
GROUP BY P.INT_RADIUS_TOTHOLZ_SUB),
(NVL(sum(t.int_mittendurch
(P.INT_RADIUS_TOTHOLZ_SUB*
and int_status_sub = 3 and (str_lrt_main = :p430_str_lrt) and int_be_main = :p430_be)
FROM VT_PUNKTDATEN_JOIN P
WHERE
(P.CNT_GEBIET=:P430_cnt_GE
AND P.INT_STATUS_SUB=3
and P.STR_LRT_MAIN = :p430_str_lrt and int_be_main = :p430_be)
GROUP BY P.INT_RADIUS_TOTHOLZ_SUB),
from
VT_TBL_TOTHOLZ t,
VT_PUNKTDATEN_JOIN P
where
(P.CNT_GEBIET = :P430_cnt_GEBIET)
and (LNG_BAUMARTENGRUPPE > 0)
and (t.LNG_INV_PT_ID = P.INV_PT_ID_SUB)
and (P.STR_LRT_MAIN = :P430_STR_LRT)
and (P.INT_STATUS_SUB = 3)
and (int_be_main = :p430_be)
group by
P.STR_LRT_MAIN,
LNG_BAUMARTENGRUPPE
Main Topics
Browse All Topics





by: andycroftsPosted on 2009-11-06 at 04:53:03ID: 25758656
as [My column name]
~