KPIINSTANCEHISTORY
Contains a history of KPI instance values.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| VALUE |
decimal(20, 5) |
|
Default = 0 |
Value for the KPI. |
| ASOFDATE |
datetime |
|
|
Date which represents the time at which the KPI was calculated. |
| DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
| DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
| TS |
timestamp |
|
|
Timestamp. |
| TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| KPIINSTANCEID |
uniqueidentifier |
|
KPIINSTANCE.ID
|
KPI instance to which the value belongs. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_KPIINSTANCEHISTORY_ASOFDATE |
ASOFDATE |
|
|
|
| IX_KPIINSTANCEHISTORY_DATEADDED |
DATEADDED |
|
|
yes |
| IX_KPIINSTANCEHISTORY_DATECHANGED |
DATECHANGED |
|
|
|
| IX_KPIINSTANCEHISTORY_KPIINSTANCEID |
KPIINSTANCEID |
|
|
|
| PK_KPIINSTANCEHISTORY |
ID |
yes |
yes |
|
Triggers