Write query to test the logic
Primary Source: SIEBEL
Source Table: SBL.dbo.S_ORG_EXT
Source Column:PRTNR_TYPE_CD, OU_TYPE_CD, OU_NM, NAME
Secondary Source: SFDC
Source Table: SFDC.dbo.T_ACCOUNT
Source Column: PARTNER_TYPE__C, ACCOUNT_CSN__C, NAME
Siebel Logic: (c=child, p=parent)
,CAST(CASE
WHEN c.[OU_TYPE_CD] IS NULL AND c.[PRTNR_TYPE_CD] IS NULL
THEN 'UNKNOWN'
WHEN UPPER(c.[OU_TYPE_CD]) = 'INTERNAL'
THEN 'INTERNAL'
WHEN UPPER(COALESCE(p.[NAME],c.[NAME])) = 'AUTODESK INC'
THEN 'INTERNAL'
WHEN c.[PRTNR_TYPE_CD] IS NOT NULL
THEN 'PARTNER'
ELSE 'CUSTOMER'
END AS NVARCHAR(50))
AS ACCOUNT_CATEGORY_NM
Subject
Written By
Posted
Write query to test the logic
February 12, 2013 11:52PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.