AdventureWorks Database > Production Schema : Production.ProductInventory Table |
Creation Date | 08/01/2010 08:40 |
File Group | PRIMARY |
Text File Group | |
System Object | ![]() |
Published for Replication | ![]() |
Rows | 1069 |
Data Space Used | 56.00 KB |
Index Space Used | 16.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
![]() | ProductID | Product identification number. Foreign key to Product.ProductID. | int | 4 | |||
![]() | LocationID | Inventory location identification number. Foreign key to Location.LocationID. | smallint | 2 | |||
Shelf | Storage compartment within an inventory location. | nvarchar | 10 | ||||
Bin | Storage container on a shelf in an inventory location. | tinyint | 1 | ||||
Quantity | Quantity of products in the inventory location. | smallint | 2 | ((0)) | |||
rowguid | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | uniqueidentifier | 16 | (newid()) | |||
ModifiedDate | Date and time the record was last updated. | datetime | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
PK_ProductInventory_ProductID_LocationID | Primary key (clustered) constraint | ![]() | ![]() |
Name | Description | Expression |
---|---|---|
CK_ProductInventory_Bin | Check constraint [Bin] BETWEEN (0) AND (100) | ([Bin]>=(0) AND [Bin]<=(100)) |
CK_ProductInventory_Shelf | Check constraint [Shelf] like '[A-Za-z]' OR [Shelf]='N/A' | ([Shelf] like '[A-Za-z]' OR [Shelf]='N/A') |
Relationship | Description |
---|---|
FK_ProductInventory_Location_LocationID | Foreign key constraint referencing Location.LocationID. |
FK_ProductInventory_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dbo.ufnGetStock | User Defined Function | Scalar function returning the quantity of inventory in LocationID 6 (Miscellaneous Storage)for a specified ProductID. | 1 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dbo.Flag | User Defined Data Type | 2 | |
![]() | Production.Location | Table | Product inventory and manufacturing locations. | 1 |
![]() | 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 |
![]() | Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|