Same for history
This commit is contained in:
parent
8b396f84a9
commit
909529f7ed
@ -72,5 +72,7 @@ left join ${ref("stg_MAPPING_AGENT_STATE_GROUP_ID")} masg
|
||||
on masgi.STATE_GROUP_ID = masg.STATE_GROUP_ID
|
||||
left join ${ref("stg_MAPPING_AGENT_REASON_CODE_ID")} mrc
|
||||
on ags.REASON_CODE = mrc.REASON_CODE
|
||||
where ags.REASON_CODE <> 'End of Shift'
|
||||
and ags.AGENT_ID <> 400000000081027
|
||||
${ when(incremental(), `where date(ags.TIMESTAMP) >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
|
||||
and date(ags.TIMESTAMP) < CURRENT_DATE()`) }
|
||||
Loading…
Reference in New Issue
Block a user