Sales.SpecialOffer Table
Information
| Name | SpecialOffer |
| Schema | Sales |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:55 |
Extended Properties
| Name | Type | Property Name | Value |
| SpecialOffer | TABLE | MS_Description | Sale discounts lookup table. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | SpecialOfferID | int |   | | | |   | |
| |   |   | Description | nvarchar(255) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | DiscountPct | smallmoney |   | | | ((0.00)) |   | |
| |   |   | Type | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | Category | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | StartDate | datetime |   | | | |   | |
| |   |   | EndDate | datetime |   | | | |   | |
| |   |   | MinQty | int |   | | | ((0)) |   | |
| |   |   | MaxQty | int |   | | | |   | |
| |   |   | rowguid | uniqueidentifier |   | | | (newid()) |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Check Constraints
SQL Script
CREATE TABLE [Sales].[SpecialOffer] (
[SpecialOfferID] int NOT NULL IDENTITY,
[Description] nvarchar(255) NOT NULL,
[DiscountPct] smallmoney NOT NULL DEFAULT ((0.00)),
[Type] nvarchar(50) NOT NULL,
[Category] nvarchar(50) NOT NULL,
[StartDate] datetime NOT NULL,
[EndDate] datetime NOT NULL,
[MinQty] int NOT NULL DEFAULT ((0)),
[MaxQty] int NULL,
[rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_SpecialOffer_rowguid] on [Sales].[SpecialOffer]([rowguid]);