0% found this document useful (0 votes)
95 views29 pages

776

This document describes the process of loading email activity data from the EPSILON.EPS_ACTIVITY_T table into several derived tables for different email events. It includes the table names for the derived tables, the DDL and load scripts used to create them, and sample update queries to populate the tables by joining with the EPSILON.EPS_ACTIVITY_T table on the SERVICE_TRANSACTION_ID column. It also shows sample counts of records in the derived tables and EPSILON.EPS_ACTIVITY_T table.

Uploaded by

babudataarch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views29 pages

776

This document describes the process of loading email activity data from the EPSILON.EPS_ACTIVITY_T table into several derived tables for different email events. It includes the table names for the derived tables, the DDL and load scripts used to create them, and sample update queries to populate the tables by joining with the EPSILON.EPS_ACTIVITY_T table on the SERVICE_TRANSACTION_ID column. It also shows sample counts of records in the derived tables and EPSILON.EPS_ACTIVITY_T table.

Uploaded by

babudataarch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Main Table: Derived tables SQL table EPSILON.

EMAIL_MS_OPEN_
alter
EPSILON.EPS_ACTIVITY_T EMAIL_MS_OPEN_T add
alterEMAIL_CAMPAIGN_ID VARCHAR(1
table EPSILON.EMAIL_MS_SEND_
col:name: EMAIL_CAMPAIGN_ID EMAIL_MS_SEND_T add
alterEMAIL_CAMPAIGN_ID VARCHAR(1
table EPSILON.EMAIL_MS_CLICK_
EMAIL_MS_CLICK_T add
alterEMAIL_CAMPAIGN_ID VARCHAR(1
table EPSILON.EMAIL_MS_BOUNC
EMAIL_MS_BOUNCE_T add
alterEMAIL_CAMPAIGN_ID VARCHAR(1
table EPSILON.EMAIL_MS_TRANS
EMAIL_MS_TRANSACTIONadd
alterEMAIL_CAMPAIGN_ID VARCHAR(1
table EPSILON.EMAIL_MS_UNSUB
EMAIL_MS_UNSUBS_T add EMAIL_CAMPAIGN_ID VARCHAR(1

'tables': ['EPS_ACTIVITY_T, EMAIL_MS_CLICK_T','EMAIL_MS_OPEN_T','EMAIL_MS_SEND_T',


'EMAIL_MS_BOUNCE_T','EMAIL_MS_TRANSACTION_T','EMAIL_MS_UNSUBS_T']
ON.EMAIL_MS_OPEN_T DDL LOAD Script Update Query:
from EPSILON.EPS_ACTIVITY_T b
PAIGN_ID VARCHAR(16777216);
ON.EMAIL_MS_SEND_T cdp/schema/edw/EPS cdp/scripts/epsilon/epsi where a.SERVICE_TRANSACTION_ID
from EPSILON.EPS_ACTIVITY_T b = b.SERVIC
PAIGN_ID VARCHAR(16777216);
ON.EMAIL_MS_CLICK_T cdp/schema/edw/EPS cdp/scripts/epsilon/epsi where a.SERVICE_TRANSACTION_ID
from EPSILON.EPS_ACTIVITY_T b = b.SERVIC
ON.EMAIL_MS_BOUNCE_Tcdp/schema/edw/EPS cdp/scripts/epsilon/epsi
PAIGN_ID VARCHAR(16777216); where a.SERVICE_TRANSACTION_ID
from EPSILON.EPS_ACTIVITY_T b = b.SERVIC
PAIGN_ID VARCHAR(16777216);
cdp/schema/edw/EPS cdp/scripts/epsilon/eps
ON.EMAIL_MS_TRANSACTION_T where a.SERVICE_TRANSACTION_ID
from EPSILON.EPS_ACTIVITY_T b = b.SERVIC
PAIGN_ID VARCHAR(16777216);
ON.EMAIL_MS_UNSUBS_Tcdp/schema/edw/EPS cdp/scripts/epsilon/eps where a.SERVICE_TRANSACTION_ID
from EPSILON.EPS_ACTIVITY_T b = b.SERVIC
cdp/schema/edw/EPS cdp/scripts/epsilon/eps
PAIGN_ID VARCHAR(16777216); where a.SERVICE_TRANSACTION_ID = b.SERVIC
EPS_ACTIVITY_T b
E_TRANSACTION_ID
EPS_ACTIVITY_T b = b.SERVICE_TRANSACTION_ID
E_TRANSACTION_ID
EPS_ACTIVITY_T b = b.SERVICE_TRANSACTION_ID
E_TRANSACTION_ID
EPS_ACTIVITY_T b = b.SERVICE_TRANSACTION_ID
E_TRANSACTION_ID
EPS_ACTIVITY_T b = b.SERVICE_TRANSACTION_ID
E_TRANSACTION_ID
EPS_ACTIVITY_T b = b.SERVICE_TRANSACTION_ID
E_TRANSACTION_ID = b.SERVICE_TRANSACTION_ID
Dag: cdpLoadFileEpsilonEmailActivity
File: NMG_Neiman_Marcus_Activity_20240119.043051.csv.gz
unique columnSERVICE_TRANSACTION_ID
select count(SERVICE_TRANSACTION_ID) from nmedwprd_db.EPSILON.EMAIL_MS_OPEN_T --2
select count(distinct SERVICE_TRANSACTION_ID) from nmedwprd_db.EPSILON.EMAIL_MS_OPE
select count(SERVICE_TRANSACTION_ID) from nmedwprd_db.EPSILON.EPS_ACTIVITY_T --6301
select count(distinct SERVICE_TRANSACTION_ID) from nmedwprd_db.EPSILON.EPS_ACTIVITY_

Data in ms_open-t select * FROM audit.cdp_data_ingestion_audit WHERE dag_id like '%cdpLoadFileEps

join nmedwdev_db.EPSILON.EPS_ACTIVITY_T b on a.SERVICE_TRANSACTION_ID


where date(a.RECORD_CREATION_DATETIME)='2024-01-30'
EMAIL_MS_SEND_T
EMAIL_MS_CLICK_T
EMAIL_MS_BOUNCE_T
EMAIL_MS_TRANSACTION_T
Table: EMAIL_MS_UNSUBS_T
.EMAIL_MS_OPEN_T --238955414
PSILON.EMAIL_MS_OPEN_T --238955414
.EPS_ACTIVITY_T --6301093053
PSILON.EPS_ACTIVITY_T --6301093053

_id like '%cdpLoadFileEpsilonEmailActivity%' order by batch_date DESC

VICE_TRANSACTION_ID = b.SERVICE_TRANSACTION_ID
30'

You might also like