Databases > AdventureWorks2019 > Tables > Production.Product

AdventureWorks2019

Production.Product

//
Products sold or used in the manfacturing of sold products.

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    ProductID
    [int] IDENTITY (1,1) NOT NULL
  • //
    ${escapify(column.description)}
    Name
    [Name] NOT NULL
    //
    USER-DEFINED DATA TYPE
    [nvarchar](50) NULL
  • //
    ${escapify(column.description)}
    ProductNumber
    [nvarchar](25) NOT NULL
  • //
    ${escapify(column.description)}
    MakeFlag
    [Flag] NOT NULL DEFAULT ((1))
    //
    USER-DEFINED DATA TYPE
    [bit] NOT NULL
  • //
    ${escapify(column.description)}
    FinishedGoodsFlag
    [Flag] NOT NULL DEFAULT ((1))
    //
    USER-DEFINED DATA TYPE
    [bit] NOT NULL
  • //
    ${escapify(column.description)}
    Color
    [nvarchar](15) NULL
  • //
    ${escapify(column.description)}
    SafetyStockLevel
    [smallint] NOT NULL
    //
    CONSTRAINT: Check constraint [SafetyStockLevel] > (0)
    ([SafetyStockLevel]>(0))
  • //
    ${escapify(column.description)}
    ReorderPoint
    [smallint] NOT NULL
    //
    CONSTRAINT: Check constraint [ReorderPoint] > (0)
    ([ReorderPoint]>(0))
  • //
    ${escapify(column.description)}
    StandardCost
    [money] NOT NULL
    //
    CONSTRAINT: Check constraint [SafetyStockLevel] > (0)
    ([StandardCost]>=(0.00))
  • //
    ${escapify(column.description)}
    ListPrice
    [money] NOT NULL
    //
    CONSTRAINT: Check constraint [ListPrice] >= (0.00)
    ([ListPrice]>=(0.00))
  • //
    ${escapify(column.description)}
    Size
    [nvarchar](5) NULL
  • //
    ${escapify(column.description)}
    SizeUnitMeasureCode
    [nchar](3) NULL
  • //
    ${escapify(column.description)}
    WeightUnitMeasureCode
    [nchar](3) NULL
  • //
    ${escapify(column.description)}
    Weight
    [decimal](8, 2) NULL
    //
    CONSTRAINT: Check constraint [Weight] > (0.00)
    ([Weight]>(0.00))
  • //
    ${escapify(column.description)}
    DaysToManufacture
    [int] NOT NULL
    //
    CONSTRAINT: Check constraint [DaysToManufacture] >= (0)
    ([DaysToManufacture]>=(0))
  • //
    ${escapify(column.description)}
    ProductLine
    [nchar](2) NULL
    //
    CONSTRAINT: Check constraint [ProductLine]='r' OR [ProductLine]='m' OR [ProductLine]='t' OR [ProductLine]='s' OR [ProductLine]='R' OR [ProductLine]='M' OR [ProductLine]='T' OR [ProductLine]='S' OR [ProductLine] IS NULL
    (upper([ProductLine])='R' OR upper([ProductLine])='M' OR upper([ProductLine])='T' OR upper([ProductLine])='S' OR [ProductLine] IS NULL)
  • //
    ${escapify(column.description)}
    Class
    [nchar](2) NULL
    //
    CONSTRAINT: Check constraint [Class]='h' OR [Class]='m' OR [Class]='l' OR [Class]='H' OR [Class]='M' OR [Class]='L' OR [Class] IS NULL
    (upper([Class])='H' OR upper([Class])='M' OR upper([Class])='L' OR [Class] IS NULL)
  • //
    ${escapify(column.description)}
    Style
    [nchar](2) NULL
    //
    CONSTRAINT: Check constraint [Style]='u' OR [Style]='m' OR [Style]='w' OR [Style]='U' OR [Style]='M' OR [Style]='W' OR [Style] IS NULL
    (upper([Style])='U' OR upper([Style])='M' OR upper([Style])='W' OR [Style] IS NULL)
  • //
    ${escapify(column.description)}
    ProductSubcategoryID
    [int] NULL
  • //
    ${escapify(column.description)}
    ProductModelID
    [int] NULL
  • //
    ${escapify(column.description)}
    SellStartDate
    [datetime] NOT NULL
  • //
    ${escapify(column.description)}
    SellEndDate
    [datetime] NULL
  • //
    ${escapify(column.description)}
    DiscontinuedDate
    [datetime] NULL
  • //
    ${escapify(column.description)}
    rowguid
    [uniqueidentifier] NOT NULL DEFAULT (newid())
  • //
    ${escapify(column.description)}
    ModifiedDate
    [datetime] NOT NULL DEFAULT (getdate())

Indexes

  • //
    Clustered index created by a primary key constraint.
    PK_Product_ProductID
    UNIQUE CLUSTERED
    ProductID
  • //
    Unique nonclustered index.
    AK_Product_ProductNumber
    UNIQUE NONCLUSTERED
    ProductNumber
  • //
    Unique nonclustered index.
    AK_Product_Name
    UNIQUE NONCLUSTERED
    Name
  • //
    Unique nonclustered index. Used to support replication samples.
    AK_Product_rowguid
    UNIQUE NONCLUSTERED
    rowguid

Foreign Keys

  • //
    Foreign key constraint referencing ProductModel.ProductModelID.
    FK_Product_ProductModel_ProductModelID
    Production.ProductModel
    ProductModelID ⥱ ProductModelID
  • //
    Foreign key constraint referencing ProductSubcategory.ProductSubcategoryID.
    FK_Product_ProductSubcategory_ProductSubcategoryID
    Production.ProductSubcategory
    ProductSubcategoryID ⥱ ProductSubcategoryID
  • //
    Foreign key constraint referencing UnitMeasure.UnitMeasureCode.
    FK_Product_UnitMeasure_SizeUnitMeasureCode
    Production.UnitMeasure
    SizeUnitMeasureCode ⥱ UnitMeasureCode
  • //
    Foreign key constraint referencing UnitMeasure.UnitMeasureCode.
    FK_Product_UnitMeasure_WeightUnitMeasureCode
    Production.UnitMeasure
    WeightUnitMeasureCode ⥱ UnitMeasureCode

Check Constraints

  • //
    Check constraint [SellEndDate] >= [SellStartDate] OR [SellEndDate] IS NULL
    CK_Product_SellEndDate
    ([SellEndDate]>=[SellStartDate] OR [SellEndDate] IS NULL)

Sample Data

ProductID
Name
ProductNumber
MakeFlag
FinishedGoodsFlag
Color
SafetyStockLevel
ReorderPoint
StandardCost
ListPrice
Size
SizeUnitMeasureCode
WeightUnitMeasureCode
Weight
DaysToManufacture
ProductLine
Class
Style
ProductSubcategoryID
ProductModelID
SellStartDate
SellEndDate
DiscontinuedDate
rowguid
ModifiedDate
1
Adjustable Race
AR-5381
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
694215B7-08F7-4C0D-ACB1-D734BA44C0C8
2
Bearing Ball
BA-8327
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
58AE3C20-4F3A-4749-A7D4-D568806CC537
3
BB Ball Bearing
BE-2349
true
NULL
NULL
800
600
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
9C21AED2-5BFA-4F18-BCB8-F11638DC2E4E
4
Headset Ball Bearings
BE-2908
NULL
NULL
NULL
800
600
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
ECFED6CB-51FF-49B5-B06C-7D8AC834DB8B
316
Blade
BL-2036
true
NULL
NULL
800
600
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
E73E9750-603B-4131-89F5-3DD15ED5FF80
317
LL Crankarm
CA-5965
NULL
NULL
Black
500
375
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
L
NULL
NULL
NULL
NULL
NULL
3C9D10B7-A6B2-4774-9963-C19DCEE72FEA
318
ML Crankarm
CA-6738
NULL
NULL
Black
500
375
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
M
NULL
NULL
NULL
NULL
NULL
EABB9A92-FA07-4EAB-8955-F0517B4A4CA7
319
HL Crankarm
CA-7457
NULL
NULL
Black
500
375
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
7D3FD384-4F29-484B-86FA-4206E276FE58
320
Chainring Bolts
CB-2903
NULL
NULL
Silver
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
7BE38E48-B7D6-4486-888E-F53C26735101
321
Chainring Nut
CN-6137
NULL
NULL
Silver
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3314B1D7-EF69-4431-B6DD-DC75268BD5DF
322
Chainring
CR-7833
NULL
NULL
Black
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
F0AC2C4D-1A1F-4E3C-B4D9-68AEA0EC1CE4
323
Crown Race
CR-9981
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
51A32CA6-65A1-4C31-AF2B-D9E4F5D631D4
324
Chain Stays
CS-2812
true
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
FE0678ED-AEF2-4C58-A450-8151CC24DDD8
325
Decal 1
DC-8732
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
05CE123C-A402-478E-AE9B-75D7727AEAAD
326
Decal 2
DC-9824
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
A56851F9-1CD7-4E2F-8779-2E773E1B5209
327
Down Tube
DT-2377
true
NULL
NULL
800
600
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
1DAD47DD-E259-42B8-B8B4-15A0B7D21B2F
328
Mountain End Caps
EC-M092
true
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
6070B1EA-59B7-4F8B-950F-2BE07D00449D
329
Road End Caps
EC-R098
true
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
88399D13-719E-4545-81D6-F0650F372FA2
330
Touring End Caps
EC-T209
true
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
6903CE24-D0CE-4191-9198-4231DE37A929
331
Fork End
FE-3760
true
NULL
NULL
800
600
NULL
NULL
NULL
NULL
NULL
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
C91D602E-DA52-43D2-BD7E-EB110A9392B9
332
Freewheel
FH-2981
NULL
NULL
Silver
500
375
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
D864879A-E8B1-4F7B-BAFA-1F136089C2C8
341
Flat Washer 1
FW-1000
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
A3F2FA3A-22E1-43D8-A131-A9B89C32D8EA
342
Flat Washer 6
FW-1200
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
331ADDEC-E9B9-4A7E-9324-42069C2DCDC4
343
Flat Washer 2
FW-1400
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
84A3473E-AE26-4A21-81B9-60BB418A79B2
344
Flat Washer 9
FW-3400
NULL
NULL
NULL
1000
750
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
0AE4CE60-5242-48F5-ADA1-3013FF45F969