DEMOGRAPHIC
This table stores additional demographic information for constituents.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| BIRTHPLACE |
nvarchar(50) |
|
Default = '' |
The constituent's place of birth |
| 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. |
| ISHISPANICLATINO |
bit |
|
Default = 0 |
Used by schools for government reporting. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
Primary Key. |
| ETHNICITYCODEID |
uniqueidentifier |
yes |
ETHNICITYCODE.LOCALID
|
This field is now obsolete. Use DEMOGRAPHICETHNICITY table to track one or more ethnicities for an individual. |
| RELIGIONCODEID |
uniqueidentifier |
yes |
RELIGIONCODE.LOCALID
|
FK to RELIGIONCODE |
| TARGETCODEID |
uniqueidentifier |
yes |
TARGETCODE.ID
|
FK to TARGETCODE |
| INCOMECODEID |
uniqueidentifier |
yes |
INCOMECODE.LOCALID
|
FK to INCOMECODE |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| DENOMINATIONCODEID |
uniqueidentifier |
yes |
DENOMINATIONCODE.ID
|
Religious denomination an individual is affiliated with. |
| CHURCHAFFILIATIONCODEID |
uniqueidentifier |
yes |
CHURCHAFFILIATIONCODE.ID
|
The church an individual is affiliated with. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_DEMOGRAPHIC_DATEADDED |
DATEADDED |
|
|
yes |
| IX_DEMOGRAPHIC_DATECHANGED |
DATECHANGED |
|
|
|
| PK_DEMOGRAPHIC |
ID |
yes |
yes |
|
Triggers
Referenced by