Hi I am facing a problem where my result will come through Unions in a query.
The query is as follows:
select sum(call_r351_conc_xy_ind),
sum(CALL_R353_CONC_REP_IND),
Sum(nvl(CALL_R354_QSB_IND,0)),
Sum(nvl(CALL_C100_IND,0)),
Sum(nvl(CALL_C101_IND,0)),
Sum(nvl(CALL_C102_IND,0)),
call_app_type
from rcoll_data
where call_answer_office_name in (‘QS800’,‘ERIC’,‘RSC’,‘BSC’,‘RCOLL’,‘BCOLL’,‘PBAR’,‘VC’,‘CEPC’,‘BEPC’,‘RSC’)
AND CALL_ANSWER_OFFICE_LANGUAGE = ‘ENG’
and Call_app_type <> ‘DUMMY’
AND
(
CALL_START_DATETIME >= trunc(to_date(:data_date, ‘MM/DD/YYYY’))
and CALL_START_DATETIME < trunc(to_date(:data_date, ‘MM/DD/YYYY’) + 1)
)
group by call_app_type
union
select sum(call_r351_conc_xy_ind),
sum(CALL_R353_CONC_REP_IND),
Sum(nvl(CALL_R354_QSB_IND,0)),
Sum(nvl(CALL_C100_IND,0)),
Sum(nvl(CALL_C101_IND,0)),
Sum(nvl(CALL_C102_IND,0)),
call_app_type
from bcoll_data
where call_answer_office_name in (‘QS800’,‘ERIC’,‘RSC’,‘BSC’,‘RCOLL’,‘BCOLL’,‘PBAR’,‘VC’,‘CEPC’,‘BEPC’,‘RSC’)
AND CALL_ANSWER_OFFICE_LANGUAGE = ‘ENG’
and Call_app_type <> ‘DUMMY’
AND
(
CALL_START_DATETIME >= trunc(to_date(:data_date, ‘MM/DD/YYYY’))
and CALL_START_DATETIME < trunc(to_date(:data_date, ‘MM/DD/YYYY’) + 1)
)
group by call_app_type
For this i have included both the Tables RCOLL_Data and BCOLL_Data in my universe and have made the corresponding Objects also.
But when in the Reporter i drag these columns…i am not able to use union in the query…I don’t know the option to use unions…is it done at teh reporter level only or we do something at the designer level…Please help
smiling_puneet (BOB member since 2006-12-04)