MKL_LEAD_ACCESS

Denorm table for Lead Resources and Territories. This Denormed table is used to optimize the lead security predicates.

Details

  • Schema: FUSION

  • Object owner: MKL

  • Object type: TABLE

  • Tablespace: FUSION_TS_TX_DATA

Primary Key

Name Columns

MKL_LEAD_ACCESS_PK

LEAD_ACCESS_ID, TYPE_CODE

Columns

Name Datatype Length Precision Not-null Comments
LEAD_ACCESS_ID NUMBER 18 Yes Lead Access Id which is Primary Key column
LEAD_ID NUMBER 18 Yes Lead Id to which the row belongs
GROUP_ID NUMBER 18 Yes Contains either Resources Party Id or Territory Id based on Type column value
TYPE_CODE VARCHAR2 30 Yes Contains either RESOURCES or TERRITORIES value
LEAD_RESOURCE_ID NUMBER 18 Lead Resource Id which is primary key column to MKL_LEAD_RESOURCES table
LEAD_TERRITORY_ID NUMBER 18 Lead Territory Id which is primary key column to MKL_LEAD_TERRITORY table
ACCESS_LEVEL_CODE VARCHAR2 30 Access Level code of resource on lead for records with type RESOURCE or TERRITORY
LEAD_EFFECTIVE_DATE TIMESTAMP Effective Date which is a de-normalized column of Creation_Date in MKL_LM_LEADS
LEAD_STATUS_CD VARCHAR2 30 Status Code which is a de-normalized column of Status Code in MKL_LM_LEADS
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.

Indexes

Index Uniqueness Tablespace Columns
MKL_LEAD_ACCESS_N1 Non Unique Default LEAD_ID, LEAD_EFFECTIVE_DATE, GROUP_ID, TYPE_CODE
MKL_LEAD_ACCESS_N2 Non Unique Default GROUP_ID, LEAD_EFFECTIVE_DATE, LEAD_ID, TYPE_CODE
MKL_LEAD_ACCESS_N3 Non Unique Default LEAD_RESOURCE_ID
MKL_LEAD_ACCESS_N4 Non Unique Default LEAD_TERRITORY_ID
MKL_LEAD_ACCESS_U1 Unique Default LEAD_ACCESS_ID, TYPE_CODE