Difference between revisions of "Sales.Store (table)"
Line 109: | Line 109: | ||
| '''Table | | '''Table | ||
| Sales.Store | | Sales.Store | ||
− | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
Line 131: | Line 131: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Customer.CustomerID.PK_Store_CustomerID | + | | Primary key. Foreign key to Customer.CustomerID.<br />PK_Store_CustomerID |
|- valign="top" | |- valign="top" | ||
| Name | | Name | ||
Line 137: | Line 137: | ||
| not null | | not null | ||
| | | | ||
− | | Name of the store. | + | | Name of the store.<br /> |
|- valign="top" | |- valign="top" | ||
| SalesPersonID | | SalesPersonID | ||
Line 143: | Line 143: | ||
| null | | null | ||
| | | | ||
− | | ID of the sales person assigned to the customer. Foreign key to SalesPerson.SalesPersonID.IX_Store_SalesPersonID | + | | ID of the sales person assigned to the customer. Foreign key to SalesPerson.SalesPersonID.<br />IX_Store_SalesPersonID |
|- valign="top" | |- valign="top" | ||
| Demographics | | Demographics | ||
Line 149: | Line 149: | ||
| null | | null | ||
| | | | ||
− | | Demographic informationg about the store such as the number of employees, annual sales and store type.PXML_Store_Demographics | + | | Demographic informationg about the store such as the number of employees, annual sales and store type.<br />PXML_Store_Demographics |
|- valign="top" | |- valign="top" | ||
| rowguid | | rowguid | ||
Line 155: | Line 155: | ||
| not null | | not null | ||
| (NEWID()) | | (NEWID()) | ||
− | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_Store_rowguid | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_Store_rowguid |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 161: | Line 161: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Revision as of 00:11, 27 November 2009
wikibot
Table | Sales.Store |
Column | Data Type | Nullable | Default | PK | Index |
CustomerID | int | not null | PK_Store_CustomerID | ||
Name | dbo.Name | not null | |||
SalesPersonID | int | null | IX_Store_SalesPersonID | ||
Demographics | xml | null | PXML_Store_Demographics | ||
rowguid | uniqueidentifier | not null | (newid()) | AK_Store_rowguid | |
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Sales.Customer | CustomerID | CustomerID |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Detail Table | Column | Referencing Column |
Sales.StoreContact | CustomerID | CustomerID |
Triggers | Type |
iStore | ON INSERT |
automatically generated
Table | Sales.Store |
Description | Customers (resellers) of Adventure Works products. |
Column | Data Type | Nullable | Default | Description / PK / Index |
CustomerID | int | not null | Primary key. Foreign key to Customer.CustomerID. PK_Store_CustomerID | |
Name | Name | not null | Name of the store. | |
SalesPersonID | int | null | ID of the sales person assigned to the customer. Foreign key to SalesPerson.SalesPersonID. IX_Store_SalesPersonID | |
Demographics | XML | null | Demographic informationg about the store such as the number of employees, annual sales and store type. PXML_Store_Demographics | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Store_rowguid |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Sales.Customer | CustomerID | CustomerID |
Sales.SalesPerson | SalesPersonID | SalesPersonID |
Detail Table | Column | Referencing Column |
Sales.StoreContact | CustomerID | CustomerID |
Triggers | Type |
iStore | ON INSERT |
Referenced Object | Object Type | Dependency Type |
dbo.Name | Type | Data Type |
Sales.StoreSurveySchemaCollection | XML Schema Collection | Data Type |
Sales.Individual | Table | Select |
dbo.uspLogError | Procedure | Execute |
dbo.uspPrintError | Procedure | Execute |
Referencing Object | Object Type | Reference Type |
Sales.vStoreWithDemographics | View | Select |
Sales.Individual | Table | Select |