Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to map this where clause in Oracle Warehouse Builder

Status
Not open for further replies.

freeka

Programmer
Jul 30, 2007
5
GB
Hi all

I have a where clause which I am struggling to map in Oracle Warehouse Builder. Problem is that I don't know what mapping will cover the CASE clause I have.

I know I could use Expression operator but where do I put it in reference to my mapping?

Many thanks in advance.


WHERE xd.cii_owner_account_id = hca.cust_account_id
AND incidentb.incident_status_id = incident_status.incident_status_id
AND incident_number = xd.sr_number

--
-- this is where the confusion begins
--

AND ( (CASE
WHEN buyout_immediate_flag <> 'Immediate'
THEN '-'
END) = '-'
OR (CASE
WHEN buyout_immediate_flag = 'Immediate'
THEN incident_status.NAME
END
) LIKE '%Authorised%'
OR (CASE
WHEN buyout_immediate_flag = 'Immediate'
THEN incident_status.NAME
END
) LIKE '%IT Appro%'
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top