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

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Sales.SalesTaxRate
 
| Sales.SalesTaxRate
 +
|- valign="top"
 +
| '''Description
 +
| Tax rate lookup table.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| SalesTaxRateID
 
| SalesTaxRateID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_SalesTaxRate_SalesTaxRateID
+
| Primary key for SalesTaxRate records.<br />PK_SalesTaxRate_SalesTaxRateID
|
+
|- valign="top"
|-
 
 
| StateProvinceID
 
| StateProvinceID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| State, province, or country/region the sales tax applies to.<br />AK_SalesTaxRate_StateProvinceID_TaxType
| AK_SalesTaxRate_StateProvinceID_TaxType
+
|- valign="top"
|-
 
 
| TaxType
 
| TaxType
 
| tinyint
 
| tinyint
 
| not null
 
| not null
 
|  
 
|  
|  
+
| 1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions.<br />AK_SalesTaxRate_StateProvinceID_TaxType
| AK_SalesTaxRate_StateProvinceID_TaxType
+
|- valign="top"
|-
 
 
| TaxRate
 
| TaxRate
 
| smallmoney
 
| smallmoney
 
| not null
 
| not null
 
| ((0.00))
 
| ((0.00))
|  
+
| Tax rate amount.<br />
|
+
|- valign="top"
|-
 
 
| Name
 
| Name
 
| dbo.Name
 
| dbo.Name
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Tax rate description.<br />
|
+
|- valign="top"
|-
 
 
| rowguid
 
| rowguid
 
| uniqueidentifier
 
| uniqueidentifier
 
| not null
 
| not null
 
| (newid())
 
| (newid())
|  
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_SalesTaxRate_rowguid
| AK_SalesTaxRate_rowguid
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 82: Line 77:
 
| StateProvinceID
 
| StateProvinceID
 
|}
 
|}
 +
 +
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|-
 +
| Data Type
 +
| Type
 +
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 23:55, 28 December 2009

wikibot

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 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.
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


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