Databases > AdventureWorks2019 > Tables > Production.ProductListPriceHistory

AdventureWorks2019

Production.ProductListPriceHistory

//
Changes in the list price of a product over time.

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    ProductID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    StartDate
    [datetime] NOT NULL
  • //
    ${escapify(column.description)}
    EndDate
    [datetime] NULL
  • //
    ${escapify(column.description)}
    ListPrice
    [money] NOT NULL
    //
    CONSTRAINT: Check constraint [ListPrice] > (0.00)
    ([ListPrice]>(0.00))
  • //
    ${escapify(column.description)}
    ModifiedDate
    [datetime] NOT NULL DEFAULT (getdate())

Indexes

  • //
    Clustered index created by a primary key constraint.
    PK_ProductListPriceHistory_ProductID_StartDate
    UNIQUE CLUSTERED
    ProductID , StartDate

Foreign Keys

  • //
    Foreign key constraint referencing Product.ProductID.
    FK_ProductListPriceHistory_Product_ProductID
    Production.Product
    ProductID ⥱ ProductID

Check Constraints

  • //
    Check constraint [EndDate] >= [StartDate] OR [EndDate] IS NULL
    CK_ProductListPriceHistory_EndDate
    ([EndDate]>=[StartDate] OR [EndDate] IS NULL)

Sample Data

ProductID
StartDate
EndDate
ListPrice
ModifiedDate
707
33.6442
707
33.6442
707
NULL
34.99
708
33.6442
708
33.6442
708
NULL
34.99
709
9.5
710
9.5
711
33.6442
711
33.6442
711
NULL
34.99
712
8.6442
712
8.6442
712
NULL
8.99
713
48.0673
713
48.0673
713
NULL
49.99
714
48.0673
714
48.0673
714
NULL
49.99
715
48.0673
715
48.0673
715
NULL
49.99
716
48.0673
716
48.0673