Editing Purchasing.ProductVendor (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Purchasing.ProductVendor | | Purchasing.ProductVendor | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_ProductVendor_ProductID_VendorID |
− | |- | + | | |
+ | |- | ||
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_ProductVendor_ProductID_VendorID |
− | |- | + | | IX_ProductVendor_VendorID |
+ | |- | ||
| AverageLeadTime | | AverageLeadTime | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| StandardPrice | | StandardPrice | ||
| money | | money | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| LastReceiptCost | | LastReceiptCost | ||
| money | | money | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| LastReceiptDate | | LastReceiptDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| MinOrderQty | | MinOrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| MaxOrderQty | | MaxOrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| OnOrderQty | | OnOrderQty | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| nchar(3) | | nchar(3) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | IX_ProductVendor_UnitMeasureCode |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
− | |||
− | |||
− | |||
| | | | ||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 153: | Line 104: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | | [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| UnitMeasureCode | | UnitMeasureCode | ||
− | |- | + | |- |
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | | [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 189: | Line 124: | ||
| '''Table | | '''Table | ||
| Purchasing.ProductVendor | | Purchasing.ProductVendor | ||
− | |- | + | |- |
+ | |||
| '''Description | | '''Description | ||
| Cross-reference table mapping vendors with the products they supply. | | Cross-reference table mapping vendors with the products they supply. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 209: | Line 146: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Product.ProductID. | + | | Primary key. Foreign key to Product.ProductID.PK_ProductVendor_ProductID_VendorID |
|- valign="top" | |- valign="top" | ||
| VendorID | | VendorID | ||
Line 215: | Line 152: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Vendor.VendorID. | + | | Primary key. Foreign key to Vendor.VendorID.PK_ProductVendor_ProductID_VendorIDIX_ProductVendor_VendorID |
|- valign="top" | |- valign="top" | ||
| AverageLeadTime | | AverageLeadTime | ||
Line 221: | Line 158: | ||
| not null | | not null | ||
| | | | ||
− | | The average span of time (in days) between placing an order with the vendor and receiving the purchased product. | + | | The average span of time (in days) between placing an order with the vendor and receiving the purchased product. |
|- valign="top" | |- valign="top" | ||
| StandardPrice | | StandardPrice | ||
Line 227: | Line 164: | ||
| not null | | not null | ||
| | | | ||
− | | The vendor's usual selling price. | + | | The vendor's usual selling price. |
|- valign="top" | |- valign="top" | ||
| LastReceiptCost | | LastReceiptCost | ||
Line 233: | Line 170: | ||
| null | | null | ||
| | | | ||
− | | The selling price when last purchased. | + | | The selling price when last purchased. |
|- valign="top" | |- valign="top" | ||
| LastReceiptDate | | LastReceiptDate | ||
Line 239: | Line 176: | ||
| null | | null | ||
| | | | ||
− | | Date the product was last received by the vendor. | + | | Date the product was last received by the vendor. |
|- valign="top" | |- valign="top" | ||
| MinOrderQty | | MinOrderQty | ||
Line 245: | Line 182: | ||
| not null | | not null | ||
| | | | ||
− | | The maximum quantity that should be ordered. | + | | The maximum quantity that should be ordered. |
|- valign="top" | |- valign="top" | ||
| MaxOrderQty | | MaxOrderQty | ||
Line 251: | Line 188: | ||
| not null | | not null | ||
| | | | ||
− | | The minimum quantity that should be ordered. | + | | The minimum quantity that should be ordered. |
|- valign="top" | |- valign="top" | ||
| OnOrderQty | | OnOrderQty | ||
Line 257: | Line 194: | ||
| null | | null | ||
| | | | ||
− | | The quantity currently on order. | + | | The quantity currently on order. |
|- valign="top" | |- valign="top" | ||
| UnitMeasureCode | | UnitMeasureCode | ||
Line 263: | Line 200: | ||
| not null | | not null | ||
| | | | ||
− | | The product's unit of measure. | + | | The product's unit of measure.IX_ProductVendor_UnitMeasureCode |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 269: | Line 206: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
Line 292: | Line 229: | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |