Sales.SalesTaxRate Table
Description
Tax rate lookup table.
Properties
| Creation Date | 17/07/2014 16:11 |
| File Group | PRIMARY |
| Text File Group | |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 29 |
| Data Space Used | 8.00 KB |
| Index Space Used | 40.00 KB |
Columns
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| SalesTaxRateID | Primary key for SalesTaxRate records. | Integer | 4 | |||
| StateProvinceID | State, province, or country/region the sales tax applies to. | Integer | 4 | ||||
| TaxType | 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions. | UnsignedTinyInt | 1 | ||||
| TaxRate | Tax rate amount. | Currency | 8 | ((0.00)) | |||
| Name | Tax rate description. | dbo.Name | 50 | ||||
| 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()) |
Indexes
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_SalesTaxRate_rowguid | Unique nonclustered index. Used to support replication samples. | ![]() | |
| AK_SalesTaxRate_StateProvinceID_TaxType | Unique nonclustered index. | ![]() | |
| PK_SalesTaxRate_SalesTaxRateID | Primary key (clustered) constraint | ![]() | ![]() |
Check Constraints
| Name | Description | Expression |
|---|---|---|
| CK_SalesTaxRate_TaxType | Check constraint [TaxType] BETWEEN (1) AND (3) | ([TaxType]>=(1) AND [TaxType]<=(3)) |
Relationships
| Relationship | Description |
|---|---|
| FK_SalesTaxRate_StateProvince_StateProvinceID | Foreign key constraint referencing StateProvince.StateProvinceID. |
Objects that Sales.SalesTaxRate depends on
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Person.CountryRegion | Table | Lookup table containing the ISO standard codes for countries and regions. | 2 |
![]() | dbo.Flag | User Defined Data Type | 2 | |
![]() | dbo.Name | User Defined Data Type | 1 | |
![]() | Sales.SalesTerritory | Table | Sales territory lookup table. | 2 |
![]() | Person.StateProvince | Table | State and province lookup table. | 1 |
SQL
|
See Also



