Editing Production.TransactionHistoryArchive (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
 
| Production.TransactionHistoryArchive
 
| Production.TransactionHistoryArchive
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Transactions for previous years.
 
| Transactions for previous years.
 +
|-
 
|}
 
|}
  
=== 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 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''Description / PK / Index
 
+
 
|- valign="top"
 
|- valign="top"
 
| TransactionID
 
| TransactionID
Line 24: Line 25:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for TransactionHistoryArchive records.
+
| Primary key for TransactionHistoryArchive records.<br />PK_TransactionHistoryArchive_TransactionID
 
|- valign="top"
 
|- valign="top"
 
| ProductID
 
| ProductID
Line 30: Line 31:
 
| not null
 
| not null
 
|  
 
|  
| Product identification number. Foreign key to Product.ProductID.
+
| Product identification number. Foreign key to Product.ProductID.<br />IX_TransactionHistoryArchive_ProductID
 
|- valign="top"
 
|- valign="top"
 
| ReferenceOrderID
 
| ReferenceOrderID
Line 36: Line 37:
 
| not null
 
| not null
 
|  
 
|  
| Purchase order, sales order, or work order identification number.
+
| Purchase order, sales order, or work order identification number.<br />IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
 
|- valign="top"
 
|- valign="top"
 
| ReferenceOrderLineID
 
| ReferenceOrderLineID
Line 42: Line 43:
 
| not null
 
| not null
 
| ((0))
 
| ((0))
| Line number associated with the purchase order, sales order, or work order.
+
| Line number associated with the purchase order, sales order, or work order.<br />IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
 
|- valign="top"
 
|- valign="top"
 
| TransactionDate
 
| TransactionDate
Line 48: Line 49:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time of the transaction.
+
| Date and time of the transaction.<br />
 
|- valign="top"
 
|- valign="top"
 
| TransactionType
 
| TransactionType
Line 54: Line 55:
 
| not null
 
| not null
 
|  
 
|  
| W = Work Order, S = Sales Order, P = Purchase Order
+
| W = Work Order, S = Sales Order, P = Purchase Order<br />
 
|- valign="top"
 
|- valign="top"
 
| Quantity
 
| Quantity
Line 60: Line 61:
 
| not null
 
| not null
 
|  
 
|  
| Product quantity.
+
| Product quantity.<br />
 
|- valign="top"
 
|- valign="top"
 
| ActualCost
 
| ActualCost
Line 66: Line 67:
 
| not null
 
| not null
 
|  
 
|  
| Product cost.
+
| Product cost.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 72: Line 73:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
|}
 
 
 
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PK_TransactionHistoryArchive_TransactionID
 
| TransactionID
 
|}
 
 
 
=== Indexes ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Index
 
| '''Type
 
| '''Columns
 
 
 
|- valign="top"
 
| IX_TransactionHistoryArchive_ProductID
 
|
 
| ProductID
 
|- valign="top"
 
| IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
 
|
 
| ReferenceOrderID, ReferenceOrderLineID
 
|}
 
 
 
=== Check Constraints ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Check Constraint
 
| '''Expression
 
| '''Description
 
 
 
|- valign="top"
 
| CK_TransactionHistoryArchive_TransactionType
 
| (upper([TransactionType])='P' OR upper([TransactionType])='S' OR upper([TransactionType])='W')
 
| Check constraint [TransactionType]='p' OR [TransactionType]='s' OR [TransactionType]='w' OR [TransactionType]='P' OR [TransactionType]='S' OR [TransactionType]='W'
 
 
|}
 
|}
  
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|- valign="top"
 
| Schema
 
| Schema
 
| [[Production_(schema)|Production]]
 
  
|}
 
  
  

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)