Hi guys,
this one has stumped me for a couple of days now.
this is the query
I am succesfully using the with option inside views but for some reason when I try to execute this one I get:
-----------------------------------------
ORA-00604: error occurred at recursive SQL level 1
ORA-01427: single-row subquery returns more than one row
-----------------------------------------
please let me know if you need more info
-Mo
this one has stumped me for a couple of days now.
this is the query
Code:
WITH Y AS (SELECT * FROM V_WB_SUMMARY_SALES where DECK = :PLOC)
select 'First' as F1, SUM(DL_PRICE) AS TOT_SALES from Y WHERE NOT CW IS NULL
union
select 'Second' as F1, SUM(DL_PRICE) AS TOT_SALES from Y WHERE CW IS NULL
I am succesfully using the with option inside views but for some reason when I try to execute this one I get:
-----------------------------------------
ORA-00604: error occurred at recursive SQL level 1
ORA-01427: single-row subquery returns more than one row
-----------------------------------------
please let me know if you need more info
-Mo