Issuances Data

This data set contains recently issued incentive codes associated with the company's account.

How much data is retained?

This data set will contain 7 days’ worth of data starting from the most recent data refresh. Data is refreshed once per day. For example, if you are looking at the data set on 7/18, it will contain data from 7/11 to present.

What data can be pulled?

Column NameTypeNullableDefaultComment
INCENTIVE_CODEVARCHAR(255)TRUENULLThe unique incentive code that is sent to a consumer
INCENTIVE_POOLVARCHAR(255)TRUENULLName of the incentive pool
TENANT_KEYVARCHAR(255)TRUENULLTenant key associated with the pool/code
REFERRING_APPLICATIONVARCHAR(16777216)TRUENULLThe application that assigned the code (usually Campaign Manager, Wallet or mobile database)
REFERRING_APPLICATION_REF_IDVARCHAR(16777216)TRUENULLCampaign ID of the campaign that assigned the code (usually a broadcast id or interactive campaign id)
EXTERNAL_ISSUEE_IDVARCHAR(16777216)TRUENULLUsually the person id (for Campaign Manager and Mobiledb) or the person key (for Wallet)
CREATED_DATE_DIM_KEYDATETRUENULLDate it was issued
CREATED_ATTIMESTAMP_TZ(9)TRUENULLWhen the code was created
UPDATED_ATTIMESTAMP_TZ(9)TRUENULLWhen it was last updated
DW_CREATED_ATTIMESTAMP_TZ(9)TRUENULLWhen it was added to the warehouse
DW_UPDATED_ATTIMESTAMP_TZ(9)TRUENULLWhen it was updated last in the warehouse

Sample Query

–- A query that will pull all sms messages from yesterday
SELECT
INCENTIVE_CODE
, INCENTIVE_POOL
,REFERRING_APPLICATION
,CREATED_AT
,UPDATED_AT

FROM ISSUANCES
WHERE CAST(DW_CREATED_AT AS DATE) >= CAST(DATEADD(day,-1,CURRENT_DATE())AS DATE)
AND CAST(DW_CREATED_AT AS DATE) < CAST(CURRENT_DATE() AS DATE)