Vendors are added to the table before any POs are processed.
Vendors are added to the table before any POs are processed.
Creation Date | 27/10/2017 14:33 |
File Group | PRIMARY |
Text File Group | |
System Object | |
Published for Replication | |
Rows | 460 |
Data Space Used | 40.00 KB |
Index Space Used | 64.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
ProductID | Primary key. Foreign key to Product.ProductID. | Integer | 4 | ||||
BusinessEntityID | Primary key. Foreign key to Vendor.BusinessEntityID. | Integer | 4 | ||||
AverageLeadTime | The average span of time (in days) between placing an order with the vendor and receiving the purchased product. | Integer | 4 | ||||
StandardPrice | The vendor's usual selling price. | Currency | 8 | ||||
LastReceiptCost | The selling price when last purchased. | Currency | 8 | ||||
LastReceiptDate | Date the product was last received by the vendor. | DBTimeStamp | 4 | ||||
MinOrderQty | The maximum quantity that should be ordered. | Integer | 4 | ||||
MaxOrderQty | The minimum quantity that should be ordered. | Integer | 4 | ||||
OnOrderQty | The quantity currently on order. | Integer | 4 | ||||
UnitMeasureCode | The product's unit of measure. | WChar | 3 | ||||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
IX_ProductVendor_BusinessEntityID | Nonclustered index. | ||
IX_ProductVendor_UnitMeasureCode | Nonclustered index. | ||
PK_ProductVendor_ProductID_BusinessEntityID | Primary key (clustered) constraint |
Name | Description | Expression |
---|---|---|
CK_ProductVendor_AverageLeadTime | Check constraint [AverageLeadTime] >= (1) | ([AverageLeadTime]>=(1)) |
CK_ProductVendor_LastReceiptCost | Check constraint [LastReceiptCost] > (0.00) | ([LastReceiptCost]>(0.00)) |
CK_ProductVendor_MaxOrderQty | Check constraint [MaxOrderQty] >= (1) | ([MaxOrderQty]>=(1)) |
CK_ProductVendor_MinOrderQty | Check constraint [MinOrderQty] >= (1) | ([MinOrderQty]>=(1)) |
CK_ProductVendor_OnOrderQty | Check constraint [OnOrderQty] >= (0) | ([OnOrderQty]>=(0)) |
CK_ProductVendor_StandardPrice | Check constraint [StandardPrice] > (0.00) | ([StandardPrice]>(0.00)) |
Relationship | Description |
---|---|
FK_ProductVendor_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
FK_ProductVendor_UnitMeasure_UnitMeasureCode | Foreign key constraint referencing UnitMeasure.UnitMeasureCode. |
FK_ProductVendor_Vendor_BusinessEntityID | Foreign key constraint referencing Vendor.BusinessEntityID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.AccountNumber | User Defined Data Type | 2 | ||
Person.BusinessEntity | Table | Source of the ID that connects vendors, customers, and employees with address and contact information. | 4 | |
dbo.ErrorLog | Table | Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct. Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct. | 3 | |
dbo.Flag | User Defined Data Type | 2 | ||
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. | 1 | |
Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 | |
Production.UnitMeasure | Table | Unit of measure lookup table. | 2 | |
dbo.uspLogError | Stored Procedure | Logs error information in the ErrorLog table about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without inserting error information. | 2 | |
dbo.uspPrintError | Stored Procedure | Prints error information about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without printing any error information. | 2 | |
Purchasing.Vendor | Table | Companies from whom Adventure Works Cycles purchases parts or other goods. | 1 |
|