Customers (resellers) of Adventure Works products.
| Creation Date | 27/10/2017 14:33 |
| File Group | PRIMARY |
| Text File Group | PRIMARY |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 701 |
| Data Space Used | 808.00 KB |
| Index Space Used | 88.00 KB |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| BusinessEntityID | Primary key. Foreign key to Customer.BusinessEntityID. | Integer | 4 | |||
| Name | Name of the store. | dbo.Name | 50 | ||||
| SalesPersonID | ID of the sales person assigned to the customer. Foreign key to SalesPerson.BusinessEntityID. | Integer | 4 | ![]() | |||
| Demographics | Demographic informationg about the store such as the number of employees, annual sales and store type. | 141 | 0 | ![]() | |||
| rowguid | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | GUID | 16 | (newid()) | |||
| ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_Store_rowguid | Unique nonclustered index. Used to support replication samples. | ![]() | |
| IX_Store_SalesPersonID | Nonclustered index. | ||
| PK_Store_BusinessEntityID | Primary key (clustered) constraint | ![]() | ![]() |
| PXML_Store_Demographics | Primary XML index. |
| Relationship | Description |
|---|---|
| FK_Store_BusinessEntity_BusinessEntityID | Foreign key constraint referencing BusinessEntity.BusinessEntityID |
| FK_Store_SalesPerson_SalesPersonID | Foreign key constraint referencing SalesPerson.SalesPersonID |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Sales.Customer | Table | Current customer information. Also see the Person and Store tables. | 1 |
![]() | iduSalesOrderDetail | Trigger | AFTER INSERT, DELETE, UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in SalesOrderDetail and updates the SalesOrderHeader.SubTotal column. | 3 |
![]() | Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 2 |
![]() | Sales.SalesOrderHeader | Table | General sales order information. | 2 |
![]() | Sales.SalesOrderHeaderSalesReason | Table | Cross-reference table mapping sales orders to sales reason codes. | 3 |
![]() | dbo.ufnGetContactInformation | User Defined Function | Table value function returning the first name, last name, job title and contact type for a given contact. | 1 |
![]() | uSalesOrderHeader | Trigger | AFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the SalesOrderHeader table.Updates the SalesYTD column in the SalesPerson and SalesTerritory tables. | 3 |
![]() | Sales.vIndividualCustomer | View | Individual customers (names and addresses) that purchase Adventure Works Cycles products online. | 2 |
![]() | Sales.vSalesPersonSalesByFiscalYears | View | Uses PIVOT to return aggregated sales information for each sales representative. | 3 |
![]() | Sales.vStoreWithAddresses | View | Stores (including store addresses) that sell Adventure Works Cycles products to consumers. | 1 |
![]() | Sales.vStoreWithContacts | View | Stores (including store contacts) that sell Adventure Works Cycles products to consumers. | 1 |
![]() | Sales.vStoreWithDemographics | View | Stores (including demographics) that sell Adventure Works Cycles products to consumers. | 1 |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Person.BusinessEntity | Table | Source of the ID that connects vendors, customers, and employees with address and contact information. | 1 |
![]() | Person.CountryRegion | Table | Lookup table containing the ISO standard codes for countries and regions. | 3 |
![]() | HumanResources.Employee | Table | Employee information such as salary, department, and title. | 2 |
![]() | dbo.Flag | User Defined Data Type | 3 | |
![]() | dbo.Name | User Defined Data Type | 1 | |
![]() | dbo.NameStyle | User Defined Data Type | 4 | |
![]() | Person.Person | Table | Human beings involved with AdventureWorks: employees, customer contacts, and vendor contacts. | 3 |
![]() | Sales.SalesPerson | Table | Sales representative current information. | 1 |
![]() | Sales.SalesTerritory | Table | Sales territory lookup table. | 2 |
|