Scalar function returning the quantity of inventory in LocationID 6 (Miscellaneous Storage)for a specified ProductID.
| Creation Date | 27/10/2017 14:33 |
| Encrypted | ![]() |
| Ansi Nulls | ![]() |
| Parameter | Direction | Description | Data Type | Size |
|---|---|---|---|---|
| @ProductID | In | Input parameter for the scalar function ufnGetStock. Enter a valid ProductID from the Production.ProductInventory table. | Integer | 4 |
| @RETURN_VALUE | Return Value | Integer | 4 |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | dbo.Flag | User Defined Data Type | 4 | |
![]() | 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.ProductInventory | Table | Product inventory information. | 2 |
![]() | 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 |
|