Cross-reference table mapping products to special offer discounts.
| Creation Date | 27/10/2017 14:33 |
| File Group | PRIMARY |
| Text File Group | |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 538 |
| Data Space Used | 24.00 KB |
| Index Space Used | 64.00 KB |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| SpecialOfferID | Primary key for SpecialOfferProduct records. | Integer | 4 | |||
| ProductID | Product identification number. Foreign key to Product.ProductID. | Integer | 4 | |||
| 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()) |
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_SpecialOfferProduct_rowguid | Unique nonclustered index. Used to support replication samples. | ![]() | |
| IX_SpecialOfferProduct_ProductID | Nonclustered index. | ||
| PK_SpecialOfferProduct_SpecialOfferID_ProductID | Primary key (clustered) constraint | ![]() | ![]() |
| Relationship | Description |
|---|---|
| FK_SpecialOfferProduct_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
| FK_SpecialOfferProduct_SpecialOffer_SpecialOfferID | Foreign key constraint referencing SpecialOffer.SpecialOfferID. |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | iduSalesOrderDetail | Trigger | AFTER INSERT, DELETE, UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in SalesOrderDetail and updates the SalesOrderHeader.SubTotal column. | 2 |
![]() | Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 1 |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | dbo.Flag | User Defined Data Type | 2 | |
![]() | dbo.Name | User Defined Data Type | 2 | |
![]() | Production.Product | Table | Products sold or used in the manfacturing of sold products. | 1 |
![]() | Production.ProductCategory | Table | High-level product categorization. | 3 |
![]() | Production.ProductModel | Table | Product model classification. | 2 |
![]() | Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 |
![]() | Sales.SpecialOffer | Table | Sale discounts lookup table. | 1 |
![]() | Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|