Lookup table containing the ISO standard codes for countries and regions.
Creation Date | 27/10/2017 14:33 |
File Group | PRIMARY |
Text File Group | |
System Object | ![]() |
Published for Replication | ![]() |
Rows | 238 |
Data Space Used | 16.00 KB |
Index Space Used | 48.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
![]() | CountryRegionCode | ISO standard code for countries and regions. | VarWChar | 3 | |||
Name | Country or region name. | dbo.Name | 50 | ||||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
AK_CountryRegion_Name | Unique nonclustered index. | ![]() | |
PK_CountryRegion_CountryRegionCode | Primary key (clustered) constraint | ![]() | ![]() |
Relationship | Description |
---|---|
FK_CountryRegionCurrency_CountryRegion_CountryRegionCode | Foreign key constraint referencing CountryRegion.CountryRegionCode. |
FK_SalesTerritory_CountryRegion_CountryRegionCode | Foreign key constraint referencing CountryRegion.CountryRegionCode. |
FK_StateProvince_CountryRegion_CountryRegionCode | Foreign key constraint referencing CountryRegion.CountryRegionCode. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | Person.Address | Table | Street address information for customers, employees, and vendors. | 2 |
![]() | Person.BusinessEntityAddress | Table | Cross-reference table mapping customers, vendors, and employees to their addresses. | 3 |
![]() | Sales.CountryRegionCurrency | Table | Cross-reference table mapping ISO currency codes to a country or region. | 1 |
![]() | Sales.Customer | Table | Current customer information. Also see the Person and Store tables. | 2 |
![]() | 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. | 4 |
![]() | Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 3 |
![]() | Sales.SalesOrderHeader | Table | General sales order information. | 2 |
![]() | Sales.SalesOrderHeaderSalesReason | Table | Cross-reference table mapping sales orders to sales reason codes. | 3 |
![]() | Sales.SalesPerson | Table | Sales representative current information. | 2 |
![]() | Sales.SalesPersonQuotaHistory | Table | Sales performance tracking. | 3 |
![]() | Sales.SalesTaxRate | Table | Tax rate lookup table. | 2 |
![]() | Sales.SalesTerritory | Table | Sales territory lookup table. | 1 |
![]() | Sales.SalesTerritoryHistory | Table | Sales representative transfers to other sales territories. | 2 |
![]() | Person.StateProvince | Table | State and province lookup table. | 1 |
![]() | Sales.Store | Table | Customers (resellers) of Adventure Works products. | 3 |
![]() | 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 |
![]() | HumanResources.vEmployee | View | Employee names and addresses. | 1 |
![]() | Sales.vIndividualCustomer | View | Individual customers (names and addresses) that purchase Adventure Works Cycles products online. | 1 |
![]() | Sales.vSalesPerson | View | Sales representiatives (names and addresses) and their sales-related information. | 1 |
![]() | Sales.vSalesPersonSalesByFiscalYears | View | Uses PIVOT to return aggregated sales information for each sales representative. | 2 |
![]() | Person.vStateProvinceCountryRegion | View | Joins StateProvince table with CountryRegion table. | 1 |
![]() | 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. | 4 |
![]() | Sales.vStoreWithDemographics | View | Stores (including demographics) that sell Adventure Works Cycles products to consumers. | 4 |
![]() | Purchasing.vVendorWithAddresses | View | Vendor (company) names and addresses . | 1 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dbo.Name | User Defined Data Type | 1 |
|