Northwind

Basic Index   Expanded Index

Table Name:Products
Primary Keys:ProductID
FieldTypeDefaultsNulls?
ProductIDintNoneNo
ProductNamenvarchar (40)NoneNo
SupplierIDintNoneYes
CategoryIDintNoneYes
QuantityPerUnitnvarchar (20)NoneYes
UnitPricemoney(0)Yes
UnitsInStocksmallint(0)Yes
UnitsOnOrdersmallint(0)Yes
ReorderLevelsmallint(0)Yes
Discontinuedbit(0)No

IndexClustered?Unique?Fields
PK_ProductsYesYesProductID
CategoriesProductsNoNoCategoryID
CategoryIDNoNoCategoryID
ProductNameNoNoProductName
SupplierIDNoNoSupplierID
SuppliersProductsNoNoSupplierID

Check ConstraintText
CK_Products_UnitPrice([UnitPrice] >= 0)
CK_ReorderLevel([ReorderLevel] >= 0)
CK_UnitsInStock([UnitsInStock] >= 0)
CK_UnitsOnOrder([UnitsOnOrder] >= 0)

Internal Foreign Key ConstraintAffected FieldSource Table
FK_Products_CategoriesCategoryIDCategories
FK_Products_SuppliersSupplierIDSuppliers

Primary Key as Foreign Key ConstraintAffected TableAffected Field
FK_Order_Details_ProductsOrder DetailsProductID

No triggers