Sales |
04/26/2006 |
PRIMARY |
8 |
40 |
29 |
Tax rate lookup table. |
|
|
SalesTaxRateID |
int |
4 |
|
|
|
|
Primary key for SalesTaxRate records. |
|
|
StateProvinceID |
int |
4 |
|
|
|
|
State, province, or country/region the sales tax applies to. |
|
|
TaxType |
tinyint |
1 |
|
|
|
|
1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions. |
|
|
TaxRate |
smallmoney |
4 |
|
((0.00)) |
|
|
Tax rate amount. |
|
|
Name |
Name |
100 |
|
|
|
|
Tax rate description. |
|
|
rowguid |
uniqueidentifier |
16 |
|
(newid()) |
|
|
ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
|
|
ModifiedDate |
datetime |
8 |
|
(getdate()) |
|
|
Date and time the record was last updated. |
Total: 7 column(s)
|
SalesTaxRateID |
1 |
1 |
|
Total: 3 index(es)
|
CK_SalesTaxRate_TaxType |
([TaxType]>=(1) AND [TaxType]<=(3)) |
Total: 1 constraint(s)
Total: 1 table(s)
Total: 5 object(s)
CREATE TABLE [SalesTaxRate] (
[SalesTaxRateID] [int] IDENTITY (1, 1) NOT NULL ,
[StateProvinceID] [int] NOT NULL ,
[TaxType] [tinyint] NOT NULL ,
[TaxRate] [smallmoney] NOT NULL CONSTRAINT [DF_SalesTaxRate_TaxRate] DEFAULT ((0.00)),
[Name] [Name] NOT NULL ,
[rowguid] uniqueidentifier ROWGUIDCOL NOT NULL CONSTRAINT [DF_SalesTaxRate_rowguid] DEFAULT (newid()),
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_SalesTaxRate_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_SalesTaxRate_SalesTaxRateID] PRIMARY KEY CLUSTERED
(
[SalesTaxRateID]
) ON [PRIMARY] ,
CONSTRAINT [FK_SalesTaxRate_StateProvince_StateProvinceID] FOREIGN KEY
(
[StateProvinceID]
) REFERENCES [StateProvince] (
[StateProvinceID]
),
CONSTRAINT [CK_SalesTaxRate_TaxType] CHECK ([TaxType]>=(1) AND [TaxType]<=(3))
) ON [PRIMARY]
GO
List of tables