AdventureWorks Database > Sales Schema : Sales.CustomerAddress Table |
Creation Date | 08/01/2010 08:40 |
File Group | PRIMARY |
Text File Group | |
System Object | ![]() |
Published for Replication | ![]() |
Rows | 19220 |
Data Space Used | 864.00 KB |
Index Space Used | 552.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
![]() | CustomerID | Primary key. Foreign key to Customer.CustomerID. | int | 4 | |||
![]() | AddressID | Primary key. Foreign key to Address.AddressID. | int | 4 | |||
AddressTypeID | Address type. Foreign key to AddressType.AddressTypeID. | int | 4 | ||||
rowguid | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | uniqueidentifier | 16 | (newid()) | |||
ModifiedDate | Date and time the record was last updated. | datetime | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
AK_CustomerAddress_rowguid | Unique nonclustered index. Used to support replication samples. | ![]() | |
PK_CustomerAddress_CustomerID_AddressID | Primary key (clustered) constraint | ![]() | ![]() |
Relationship | Description |
---|---|
FK_CustomerAddress_Address_AddressID | Foreign key constraint referencing Address.AddressID. |
FK_CustomerAddress_AddressType_AddressTypeID | Foreign key constraint referencing AddressType.AddressTypeID. |
FK_CustomerAddress_Customer_CustomerID | Foreign key constraint referencing Customer.CustomerID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | Sales.vIndividualCustomer | View | Individual customers (names and addresses) that purchase Adventure Works Cycles products online. | 1 |
![]() | Sales.vStoreWithDemographics | View | Stores (names and addresses) that sell Adventure Works Cycles products to consumers. | 1 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | Person.Address | Table | Street address information for customers, employees, and vendors. | 1 |
![]() | Person.AddressType | Table | Types of addresses stored in the Address table. | 1 |
![]() | Person.CountryRegion | Table | Lookup table containing the ISO standard codes for countries and regions. | 3 |
![]() | Sales.Customer | Table | Current customer information. Also see the Individual and Store tables. | 1 |
![]() | dbo.Flag | User Defined Data Type | 3 | |
![]() | Person.StateProvince | Table | State and province lookup table. | 2 |
![]() | dbo.ufnLeadingZeros | User Defined Function | Scalar function used by the Sales.Customer table to help set the account number. | 2 |
|