Difference between revisions of "Sales.SalesTaxRate (table)"

From dbscript Online Help
Jump to: navigation, search
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''Table
 
| '''Table
 
| Sales.SalesTaxRate
 
| Sales.SalesTaxRate
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Tax rate lookup table.
 
| Tax rate lookup table.
|-
 
 
|}
 
|}
 
  
 
=== Columns ===
 
=== Columns ===
Line 20: Line 18:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
+
 
 
|- valign="top"
 
|- valign="top"
 
| SalesTaxRateID
 
| SalesTaxRateID
Line 70: Line 68:
 
| '''Primary Key
 
| '''Primary Key
 
| '''Columns
 
| '''Columns
|-
+
|- valign="top"
 
| PK_SalesTaxRate_SalesTaxRateID
 
| PK_SalesTaxRate_SalesTaxRateID
 
| SalesTaxRateID
 
| SalesTaxRateID
Line 81: Line 79:
 
| '''Type
 
| '''Type
 
| '''Columns
 
| '''Columns
+
 
|-
+
|- valign="top"
 
| AK_SalesTaxRate_StateProvinceID_TaxType
 
| AK_SalesTaxRate_StateProvinceID_TaxType
 
| Unique
 
| Unique
 
| StateProvinceID, TaxType
 
| StateProvinceID, TaxType
|-
+
|- valign="top"
 
| AK_SalesTaxRate_rowguid
 
| AK_SalesTaxRate_rowguid
 
| Unique
 
| Unique
Line 98: Line 96:
 
| '''Expression
 
| '''Expression
 
| '''Description
 
| '''Description
+
 
|-
+
|- valign="top"
 
| CK_SalesTaxRate_TaxType
 
| CK_SalesTaxRate_TaxType
 
| ([TaxType]>=(1) AND [TaxType]<=(3))
 
| ([TaxType]>=(1) AND [TaxType]<=(3))
Line 111: Line 109:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
+
 
|-
+
|- valign="top"
 
| [[Person.StateProvince_(table)|Person.StateProvince]]
 
| [[Person.StateProvince_(table)|Person.StateProvince]]
 
| StateProvinceID
 
| StateProvinceID
Line 125: Line 123:
 
| '''Referenced Object
 
| '''Referenced Object
  
|-
+
|- valign="top"
 
| Data Type
 
| Data Type
 
| Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
| [[dbo.Name_(type)|dbo.Name]]
  
|-
+
|- valign="top"
 
| Schema
 
| Schema
 
| Schema
 
| Schema

Revision as of 00:17, 24 June 2010

wikibot

Table Sales.SalesTaxRate
Description Tax rate lookup table.

Columns

Column Data Type Nullable Default Description
SalesTaxRateID int not null Primary key for SalesTaxRate records.
StateProvinceID int not null State, province, or country/region the sales tax applies to.
TaxType tinyint not null 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.
TaxRate smallmoney not null ((0.00)) Tax rate amount.
Name dbo.Name not null Tax rate description.
rowguid uniqueidentifier not null (newid()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.

Primary Key

Primary Key Columns
PK_SalesTaxRate_SalesTaxRateID SalesTaxRateID

Indexes

Index Type Columns
AK_SalesTaxRate_StateProvinceID_TaxType Unique StateProvinceID, TaxType
AK_SalesTaxRate_rowguid Unique rowguid

Check Constraints

Check Constraint Expression Description
CK_SalesTaxRate_TaxType ([TaxType]>=(1) AND [TaxType]<=(3)) Check constraint [TaxType] BETWEEN (1) AND (3)

Foreign Keys

Relation Column Referenced Column
Person.StateProvince StateProvinceID StateProvinceID

References

Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Sales


automatically generated

Table Sales.SalesTaxRate
Description Tax rate lookup table.


Column Data Type Nullable Default Description / PK / Index
SalesTaxRateID int not null Primary key for SalesTaxRate records.
PK_SalesTaxRate_SalesTaxRateID
StateProvinceID int not null State, province, or country/region the sales tax applies to.
AK_SalesTaxRate_StateProvinceID_TaxType
TaxType tinyint not null 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.
AK_SalesTaxRate_StateProvinceID_TaxType
TaxRate smallmoney not null (0.00) Tax rate amount.
Name Name not null Tax rate description.
rowguid uniqueidentifier not null (NEWID()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_SalesTaxRate_rowguid
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Person.StateProvince StateProvinceID StateProvinceID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Sales