<p>select distinct D1.c1 as c1,</p><p>D1.c2 as c2,</p><p>D1.c3 as c3,</p><p>'0' as c4,</p><p>'' as c5,</p><p>'' as c6,</p><p>1 as c7,</p><p>1 as c8,</p><p>1 as c9,</p><p>D1.c4 as c10 from </p><p>(select distinct T73739.CONTACT_ID as c1,</p><p>T73739.PROSPECT_ID as c2,</p><p>T73739.ACCNT_ID as c3,</p><p>T73739.INTEGRATION_ID as c4</p><p> from </p><p>W_PARTY_PER_D T73739,</p><p>W_PARTY_ORG_D T67365,</p><p>W_PARTY_D T157680,</p><p>W_ORDER_F T84444 /* Fact_W_ORDER_F */ </p><p> where ( T67365.ROW_WID = T157680.PARTY_ORG_WID and T73739.ROW_WID = T84444.CONTACT_WID and T67365.ACCNT_FLG = 'Y' and T84444.CUSTOMER_WID = T157680.ROW_WID and T67365.INTEGRATION_ID in (select distinct T157680.INTEGRATION_ID as c1</p><p> from </p><p>W_PARTY_D T157680</p><p> where ( T157680.COUNTRY_NAME in ('Germany', 'UK', 'USA', 'United Kingdom', 'Unspecified') ) ) and T73739.INTEGRATION_ID in (select distinct D1.c1 as c1 from </p><p>((select T73739.INTEGRATION_ID as c1</p><p> from </p><p>W_PARTY_PER_D T73739</p><p> where ( T73739.SEX_MF_NAME = 'F' ) </p><p> intersect</p><p> select T73739.INTEGRATION_ID as c1</p><p> from </p><p>W_PARTY_PER_D T73739</p><p> where ( T73739.CONTACT_TYPE_NAME = 'Contact' ) </p><p> intersect</p><p> select D1.c1 as c1</p><p> from </p><p>(select T73739.INTEGRATION_ID as c1,</p><p> count(distinct T87231.ROW_WID) as c2</p><p> from </p><p>W_PARTY_PER_D T73739,</p><p>W_RESPONSE_MD T84692 /* Dim_W_RESPONSE_MD */ ,</p><p>W_RESPONSE_F T87231 /* Fact_W_RESPONSE_F_PROD */ </p><p> where ( T73739.ROW_WID = T87231.CONTACT_WID and T84692.ROW_WID = T87231.RESP_ATTR_WID and (T84692.RESP_METHOD in ('Direct mail', 'Email', 'Fax', 'Mail', 'Phone', 'Point of Sale', 'Web')) ) </p><p> group by T73739.INTEGRATION_ID</p><p>) D1)</p><p>) D1) ) </p><p>) D1 order by c1, c2, c3, c10</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages3 Page
-
File Size-