Closed GoogleCodeExporter closed 9 years ago
OraGoods parses the SELECT clause of your query to determine the columns. If you
include an INNER query, it will probably fail. Try to use an inner query to
wrap the
column.
Instead of this
select mu.mailing_key as mk,
mu.mailing_sent as st,
(select count(*)
from mailing_event
where mailing_key = mu.mailing_key and event_type_hnd in (1,8)
) as om
from MAILING_CAMPAIGN mu
where mailing_desc like 'Partner E-mail%'
Use an inner query like this:
select mk, st, om
from (
select mu.mailing_key as mk,
mu.mailing_sent as st,
(select count(*)
from mailing_event
where mailing_key = mu.mailing_key and event_type_hnd in (1,8)
) as om
from MAILING_CAMPAIGN mu
where mailing_desc like 'Partner E-mail%'
)
Original comment by jose.can...@gmail.com
on 12 May 2010 at 4:24
Thank you.
Original comment by mrosse...@experience.com
on 12 May 2010 at 5:43
Original issue reported on code.google.com by
mrosse...@experience.com
on 12 May 2010 at 4:04