Welcome Guest, you are in: Login

devio dbscript ScrewTurn Wiki

RSS RSS

Navigation





Search the wiki
»

PoweredBy

Page History: Sales Customer (table)

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2010/01/09 17:46


wikibot

TableSales.Customer
DescriptionCurrent customer information. Also see the Individual and Store tables.

ColumnData TypeNullableDefaultDescription / PK / Index
CustomerIDintnot null Primary key for Customer records.
PK_Customer_CustomerID
TerritoryIDintnull ID of the territory in which the customer is located. Foreign key to SalesTerritory.SalesTerritoryID.
IX_Customer_TerritoryID
AccountNumber   Unique number identifying the customer assigned by the accounting system.
AK_Customer_AccountNumber
CustomerTypenchar(1)not null Customer type: I = Individual, S = Store
rowguiduniqueidentifiernot null(newid())ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_Customer_rowguid
ModifiedDatedatetimenot null(getdate())Date and time the record was last updated.



RelationColumnReferenced Column
Sales.SalesTerritoryTerritoryIDTerritoryID

Detail TableColumnReferencing Column
Sales.CustomerAddressCustomerIDCustomerID
Sales.IndividualCustomerIDCustomerID
Sales.SalesOrderHeaderCustomerIDCustomerID
Sales.StoreCustomerIDCustomerID

Reference TypeObject TypeReferencing Object
SelectViewSales.vIndividualCustomer
SelectViewSales.vStoreWithDemographics

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.