Export table for csc agent
This commit is contained in:
parent
4928e4d508
commit
0c8d534db6
24
definitions/export/csc_agent_export.sqlx
Normal file
24
definitions/export/csc_agent_export.sqlx
Normal file
@ -0,0 +1,24 @@
|
||||
config {
|
||||
type: "table",
|
||||
schema: "pphe_five9_gold",
|
||||
description: "Exporting last 7 days of csc_agent table"
|
||||
}
|
||||
|
||||
select RESORT,
|
||||
MARKET_CODE,
|
||||
CONFIRMATION_NO,
|
||||
UPDATE_USER,
|
||||
AGENT_ID,
|
||||
CSC_AGENT_YN,
|
||||
CHANGE_DATE,
|
||||
DATE,
|
||||
HOUR,
|
||||
UPDATE_TYPE,
|
||||
UPDATE_TYPE_ID,
|
||||
UPDATE_TYPE_GROUP_ID,
|
||||
UPDATE_TYPE_GROUP,
|
||||
REVENUE_GENERATING_YN,
|
||||
COUNTER
|
||||
from ${ref("stg_csc_agent")}
|
||||
where DATE >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
|
||||
and CSC_AGENT_YN = 'Y'
|
||||
Loading…
Reference in New Issue
Block a user