Editing Sales.Customer (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 199: | Line 199: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for Customer records. | + | | Primary key for Customer records.PK_Customer_CustomerID |
|- valign="top" | |- valign="top" | ||
| TerritoryID | | TerritoryID | ||
Line 205: | Line 205: | ||
| null | | null | ||
| | | | ||
− | | ID of the territory in which the customer is located. Foreign key to SalesTerritory.SalesTerritoryID. | + | | ID of the territory in which the customer is located. Foreign key to SalesTerritory.SalesTerritoryID.IX_Customer_TerritoryID |
|- valign="top" | |- valign="top" | ||
| AccountNumber | | AccountNumber | ||
Line 211: | Line 211: | ||
| | | | ||
| | | | ||
− | | Unique number identifying the customer assigned by the accounting system. | + | | Unique number identifying the customer assigned by the accounting system.AK_Customer_AccountNumber |
|- valign="top" | |- valign="top" | ||
| CustomerType | | CustomerType | ||
Line 217: | Line 217: | ||
| not null | | not null | ||
| | | | ||
− | | Customer type: I = Individual, S = Store | + | | Customer type: I = Individual, S = Store |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 223: | Line 223: | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_Customer_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 229: | Line 229: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||