Editing Purchasing.ProductVendor (table)

Jump to: navigation, search

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"
|- valign="top"
+
|-
 
| '''Table
 
| '''Table
 
| Purchasing.ProductVendor
 
| Purchasing.ProductVendor
|- valign="top"
+
|-
| '''Description
 
| Cross-reference table mapping vendors with the products they supply.
 
 
|}
 
|}
  
=== Columns ===
+
 
 
{| 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
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to Product.ProductID.
+
| PK_ProductVendor_ProductID_VendorID
|- valign="top"
+
|
 +
|-
 
| VendorID
 
| VendorID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to Vendor.VendorID.
+
| PK_ProductVendor_ProductID_VendorID
|- valign="top"
+
| IX_ProductVendor_VendorID
 +
|-
 
| AverageLeadTime
 
| AverageLeadTime
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| The average span of time (in days) between placing an order with the vendor and receiving the purchased product.
+
|  
|- valign="top"
+
|
 +
|-
 
| StandardPrice
 
| StandardPrice
 
| money
 
| money
 
| not null
 
| not null
 
|  
 
|  
| The vendor's usual selling price.
+
|  
|- valign="top"
+
|
 +
|-
 
| LastReceiptCost
 
| LastReceiptCost
 
| money
 
| money
 
| null
 
| null
 
|  
 
|  
| The selling price when last purchased.
+
|  
|- valign="top"
+
|
 +
|-
 
| LastReceiptDate
 
| LastReceiptDate
 
| datetime
 
| datetime
 
| null
 
| null
 
|  
 
|  
| Date the product was last received by the vendor.
+
|  
|- valign="top"
+
|
 +
|-
 
| MinOrderQty
 
| MinOrderQty
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| The maximum quantity that should be ordered.
+
|  
|- valign="top"
+
|
 +
|-
 
| MaxOrderQty
 
| MaxOrderQty
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| The minimum quantity that should be ordered.
+
|  
|- valign="top"
+
|
 +
|-
 
| OnOrderQty
 
| OnOrderQty
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
| The quantity currently on order.
+
|  
|- valign="top"
+
|
 +
|-
 
| UnitMeasureCode
 
| UnitMeasureCode
 
| nchar(3)
 
| nchar(3)
 
| not null
 
| not null
 
|  
 
|  
| The product's unit of measure.
+
|  
|- valign="top"
+
| IX_ProductVendor_UnitMeasureCode
 +
|-
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.
 
|}
 
 
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PK_ProductVendor_ProductID_VendorID
 
| ProductID, VendorID
 
|}
 
 
=== Indexes ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Index
 
| '''Type
 
| '''Columns
 
 
|- valign="top"
 
| IX_ProductVendor_UnitMeasureCode
 
 
|  
 
|  
| UnitMeasureCode
 
|- valign="top"
 
| IX_ProductVendor_VendorID
 
 
|  
 
|  
| VendorID
 
 
|}
 
|}
  
=== Check Constraints ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Check Constraint
 
| '''Expression
 
| '''Description
 
  
|- valign="top"
 
| CK_ProductVendor_AverageLeadTime
 
| ([AverageLeadTime]>=(1))
 
| Check constraint [AverageLeadTime] >= (1)
 
|- valign="top"
 
| CK_ProductVendor_LastReceiptCost
 
| ([LastReceiptCost]>(0.00))
 
| Check constraint [LastReceiptCost] > (0.00)
 
|- valign="top"
 
| CK_ProductVendor_MaxOrderQty
 
| ([MaxOrderQty]>=(1))
 
| Check constraint [MaxOrderQty] >= (1)
 
|- valign="top"
 
| CK_ProductVendor_MinOrderQty
 
| ([MinOrderQty]>=(1))
 
| Check constraint [MinOrderQty] >= (1)
 
|- valign="top"
 
| CK_ProductVendor_OnOrderQty
 
| ([OnOrderQty]>=(0))
 
| Check constraint [OnOrderQty] >= (0)
 
|- valign="top"
 
| CK_ProductVendor_StandardPrice
 
| ([StandardPrice]>(0.00))
 
| Check constraint [StandardPrice] > (0.00)
 
|}
 
  
=== Foreign Keys ===
 
 
{| 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
 
+
|- valign="top"
+
|-
 
| [[Production.Product_(table)|Production.Product]]
 
| [[Production.Product_(table)|Production.Product]]
 
| ProductID
 
| ProductID
 
| ProductID
 
| ProductID
|- valign="top"
+
|-
 
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]]
 
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]]
 
| UnitMeasureCode
 
| UnitMeasureCode
 
| UnitMeasureCode
 
| UnitMeasureCode
|- valign="top"
+
|-
 
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]]
 
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]]
 
| VendorID
 
| VendorID
 
| VendorID
 
| VendorID
 
|}
 
|}
 
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|- valign="top"
 
| Schema
 
| Schema
 
| [[Purchasing_(schema)|Purchasing]]
 
 
|}
 
 
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 189: Line 124:
 
| '''Table
 
| '''Table
 
| Purchasing.ProductVendor
 
| Purchasing.ProductVendor
|- valign="top"
+
|-
 +
 
 
| '''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.<br />PK_ProductVendor_ProductID_VendorID
+
| 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.<br />PK_ProductVendor_ProductID_VendorIDIX_ProductVendor_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.<br />
+
| 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.<br />
+
| The vendor's usual selling price.
 
|- valign="top"
 
|- valign="top"
 
| LastReceiptCost
 
| LastReceiptCost
Line 233: Line 170:
 
| null
 
| null
 
|  
 
|  
| The selling price when last purchased.<br />
+
| 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.<br />
+
| 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.<br />
+
| 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.<br />
+
| The minimum quantity that should be ordered.
 
|- valign="top"
 
|- valign="top"
 
| OnOrderQty
 
| OnOrderQty
Line 257: Line 194:
 
| null
 
| null
 
|  
 
|  
| The quantity currently on order.<br />
+
| 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.<br />IX_ProductVendor_UnitMeasureCode
+
| 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.<br />
+
| Date and time the record was last updated.
 
|}
 
|}
  
Line 292: Line 229:
 
| VendorID
 
| VendorID
 
| VendorID
 
| VendorID
|}
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|-
 
| Schema
 
| Schema
 
| [[Purchasing_(schema)|Purchasing]]
 
 
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)