BATCHADDRESSVALIDATION
Stores the submitted/validated address information for the address validation process
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
ADDRESSBLOCK |
nvarchar(150) |
|
Default = '' |
Submitted address. |
CITY |
nvarchar(50) |
|
Default = '' |
Submitted city. |
POSTCODE |
nvarchar(12) |
|
Default = '' |
Submitted post code. |
NEWADDRESSBLOCK |
nvarchar(150) |
|
Default = '' |
Validated address. |
NEWCITY |
nvarchar(50) |
|
Default = '' |
Validated city. |
NEWPOSTCODE |
nvarchar(12) |
|
Default = '' |
Validated post code. |
NEWDPC |
nvarchar(8) |
|
Default = '' |
Validated delivery point code. |
NEWCART |
nvarchar(10) |
|
Default = '' |
Validated address carrier route. |
NEWLOT |
nvarchar(5) |
|
Default = '' |
Validated address LOT. |
ADDRESSCHANGED |
bit |
|
Default = 0 |
Indicates if the address was changed during the validation process. |
VALIDATIONMESSAGE |
nvarchar(200) |
|
Default = '' |
Indicates what changes were made during the validation or the reason that the address was not validated. |
CERTIFICATIONDATA |
int |
|
Default = 0 |
Contains the certification data which shows with which release of the Postal Datafiles this address was last validated. |
SEQUENCE |
int |
|
Default = 0 |
|
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 |
BATCHID |
uniqueidentifier |
|
BATCH.ID
|
Foreign key to the batch table. |
ADDRESSVALIDATIONID |
uniqueidentifier |
|
ADDRESSVALIDATION.ID
|
Foreign key to the address validation table. |
CONSTITUENTID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
Foreign key to the constituent table. |
COUNTRYID |
uniqueidentifier |
|
COUNTRY.LOCALID
|
Foreign key to the country table |
ADDRESSID |
uniqueidentifier |
|
ADDRESS.LOCALID
|
Foreign key to the address table. |
STATEID |
uniqueidentifier |
yes |
STATE.LOCALID
|
Submitted state. |
NEWSTATEID |
uniqueidentifier |
yes |
STATE.LOCALID
|
Validated state. |
NEWCOUNTYID |
uniqueidentifier |
yes |
COUNTYCODE.LOCALID
|
Validated county ID. |
NEWCONGRESSIONALDISTRICTID |
uniqueidentifier |
yes |
CONGRESSIONALDISTRICTCODE.ID
|
Validated congressional district id. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_BATCHADDRESSVALIDATION_ADDRESSID |
ADDRESSID |
|
|
|
IX_BATCHADDRESSVALIDATION_CONSTITUENTID |
CONSTITUENTID |
|
|
|
IX_BATCHADDRESSVALIDATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_BATCHADDRESSVALIDATION_DATECHANGED |
DATECHANGED |
|
|
|
PK_BATCHADDRESSVALIDATION |
ID |
yes |
yes |
|
Triggers
Referenced by