Editing Sales.SalesOrderHeader (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 566: Line 566:
 
| not null
 
| not null
 
|  
 
|  
| Primary key.<br />PK_SalesOrderHeader_SalesOrderID
+
| Primary key.PK_SalesOrderHeader_SalesOrderID
 
|- valign="top"
 
|- valign="top"
 
| RevisionNumber
 
| RevisionNumber
Line 572: Line 572:
 
| not null
 
| not null
 
| (0)
 
| (0)
| Incremental number to track changes to the sales order over time.<br />
+
| Incremental number to track changes to the sales order over time.
 
|- valign="top"
 
|- valign="top"
 
| OrderDate
 
| OrderDate
Line 578: Line 578:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Dates the sales order was created.<br />
+
| Dates the sales order was created.
 
|- valign="top"
 
|- valign="top"
 
| DueDate
 
| DueDate
Line 584: Line 584:
 
| not null
 
| not null
 
|  
 
|  
| Date the order is due to the customer.<br />
+
| Date the order is due to the customer.
 
|- valign="top"
 
|- valign="top"
 
| ShipDate
 
| ShipDate
Line 590: Line 590:
 
| null
 
| null
 
|  
 
|  
| Date the order was shipped to the customer.<br />
+
| Date the order was shipped to the customer.
 
|- valign="top"
 
|- valign="top"
 
| Status
 
| Status
Line 596: Line 596:
 
| not null
 
| not null
 
| (1)
 
| (1)
| Order current status. 1 = In process; 2 = Approved; 3 = Backordered; 4 = Rejected; 5 = Shipped; 6 = Cancelled<br />
+
| Order current status. 1 = In process; 2 = Approved; 3 = Backordered; 4 = Rejected; 5 = Shipped; 6 = Cancelled
 
|- valign="top"
 
|- valign="top"
 
| OnlineOrderFlag
 
| OnlineOrderFlag
Line 602: Line 602:
 
| not null
 
| not null
 
| (1)
 
| (1)
| 0 = Order placed by sales person. 1 = Order placed online by customer.<br />
+
| 0 = Order placed by sales person. 1 = Order placed online by customer.
 
|- valign="top"
 
|- valign="top"
 
| SalesOrderNumber
 
| SalesOrderNumber
Line 608: Line 608:
 
|  
 
|  
 
|  
 
|  
| Unique sales order identification number.<br />AK_SalesOrderHeader_SalesOrderNumber
+
| Unique sales order identification number.AK_SalesOrderHeader_SalesOrderNumber
 
|- valign="top"
 
|- valign="top"
 
| PurchaseOrderNumber
 
| PurchaseOrderNumber
Line 614: Line 614:
 
| null
 
| null
 
|  
 
|  
| Customer purchase order number reference. <br />
+
| Customer purchase order number reference.  
 
|- valign="top"
 
|- valign="top"
 
| AccountNumber
 
| AccountNumber
Line 620: Line 620:
 
| null
 
| null
 
|  
 
|  
| Financial accounting number reference.<br />
+
| Financial accounting number reference.
 
|- valign="top"
 
|- valign="top"
 
| CustomerID
 
| CustomerID
Line 626: Line 626:
 
| not null
 
| not null
 
|  
 
|  
| Customer identification number. Foreign key to Customer.CustomerID.<br />IX_SalesOrderHeader_CustomerID
+
| Customer identification number. Foreign key to Customer.CustomerID.IX_SalesOrderHeader_CustomerID
 
|- valign="top"
 
|- valign="top"
 
| ContactID
 
| ContactID
Line 632: Line 632:
 
| not null
 
| not null
 
|  
 
|  
| Customer contact identification number. Foreign key to Contact.ContactID.<br />
+
| Customer contact identification number. Foreign key to Contact.ContactID.
 
|- valign="top"
 
|- valign="top"
 
| SalesPersonID
 
| SalesPersonID
Line 638: Line 638:
 
| null
 
| null
 
|  
 
|  
| Sales person who created the sales order. Foreign key to SalesPerson.SalePersonID.<br />IX_SalesOrderHeader_SalesPersonID
+
| Sales person who created the sales order. Foreign key to SalesPerson.SalePersonID.IX_SalesOrderHeader_SalesPersonID
 
|- valign="top"
 
|- valign="top"
 
| TerritoryID
 
| TerritoryID
Line 644: Line 644:
 
| null
 
| null
 
|  
 
|  
| Territory in which the sale was made. Foreign key to SalesTerritory.SalesTerritoryID.<br />
+
| Territory in which the sale was made. Foreign key to SalesTerritory.SalesTerritoryID.
 
|- valign="top"
 
|- valign="top"
 
| BillToAddressID
 
| BillToAddressID
Line 650: Line 650:
 
| not null
 
| not null
 
|  
 
|  
| Customer billing address. Foreign key to Address.AddressID.<br />
+
| Customer billing address. Foreign key to Address.AddressID.
 
|- valign="top"
 
|- valign="top"
 
| ShipToAddressID
 
| ShipToAddressID
Line 656: Line 656:
 
| not null
 
| not null
 
|  
 
|  
| Customer shipping address. Foreign key to Address.AddressID.<br />
+
| Customer shipping address. Foreign key to Address.AddressID.
 
|- valign="top"
 
|- valign="top"
 
| ShipMethodID
 
| ShipMethodID
Line 662: Line 662:
 
| not null
 
| not null
 
|  
 
|  
| Shipping method. Foreign key to ShipMethod.ShipMethodID.<br />
+
| Shipping method. Foreign key to ShipMethod.ShipMethodID.
 
|- valign="top"
 
|- valign="top"
 
| CreditCardID
 
| CreditCardID
Line 668: Line 668:
 
| null
 
| null
 
|  
 
|  
| Credit card identification number. Foreign key to CreditCard.CreditCardID.<br />
+
| Credit card identification number. Foreign key to CreditCard.CreditCardID.
 
|- valign="top"
 
|- valign="top"
 
| CreditCardApprovalCode
 
| CreditCardApprovalCode
Line 674: Line 674:
 
| null
 
| null
 
|  
 
|  
| Approval code provided by the credit card company.<br />
+
| Approval code provided by the credit card company.
 
|- valign="top"
 
|- valign="top"
 
| CurrencyRateID
 
| CurrencyRateID
Line 680: Line 680:
 
| null
 
| null
 
|  
 
|  
| Currency exchange rate used. Foreign key to CurrencyRate.CurrencyRateID.<br />
+
| Currency exchange rate used. Foreign key to CurrencyRate.CurrencyRateID.
 
|- valign="top"
 
|- valign="top"
 
| SubTotal
 
| SubTotal
Line 686: Line 686:
 
| not null
 
| not null
 
| (0.00)
 
| (0.00)
| Sales subtotal. Computed as SUM(SalesOrderDetail.LineTotal)for the appropriate SalesOrderID.<br />
+
| Sales subtotal. Computed as SUM(SalesOrderDetail.LineTotal)for the appropriate SalesOrderID.
 
|- valign="top"
 
|- valign="top"
 
| TaxAmt
 
| TaxAmt
Line 692: Line 692:
 
| not null
 
| not null
 
| (0.00)
 
| (0.00)
| Tax amount.<br />
+
| Tax amount.
 
|- valign="top"
 
|- valign="top"
 
| Freight
 
| Freight
Line 698: Line 698:
 
| not null
 
| not null
 
| (0.00)
 
| (0.00)
| Shipping cost.<br />
+
| Shipping cost.
 
|- valign="top"
 
|- valign="top"
 
| TotalDue
 
| TotalDue
Line 704: Line 704:
 
|  
 
|  
 
|  
 
|  
| Total due from customer. Computed as Subtotal + TaxAmt + Freight.<br />
+
| Total due from customer. Computed as Subtotal + TaxAmt + Freight.
 
|- valign="top"
 
|- valign="top"
 
| Comment
 
| Comment
Line 710: Line 710:
 
| null
 
| null
 
|  
 
|  
| Sales representative comments.<br />
+
| Sales representative comments.
 
|- valign="top"
 
|- valign="top"
 
| rowguid
 
| rowguid
Line 716: Line 716:
 
| not null
 
| not null
 
| (NEWID())
 
| (NEWID())
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_SalesOrderHeader_rowguid
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_SalesOrderHeader_rowguid
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 722: Line 722:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.<br />
+
| Date and time the record was last updated.
 
|}
 
|}
  

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)