Editing Sales.SalesOrderDetail (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 360: Line 360:
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to SalesOrderHeader.SalesOrderID.<br />PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID
+
| Primary key. Foreign key to SalesOrderHeader.SalesOrderID.PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID
 
|- valign="top"
 
|- valign="top"
 
| SalesOrderDetailID
 
| SalesOrderDetailID
Line 366: Line 366:
 
| not null
 
| not null
 
|  
 
|  
| Primary key. One incremental unique number per product sold.<br />PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID
+
| Primary key. One incremental unique number per product sold.PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID
 
|- valign="top"
 
|- valign="top"
 
| CarrierTrackingNumber
 
| CarrierTrackingNumber
Line 372: Line 372:
 
| null
 
| null
 
|  
 
|  
| Shipment tracking number supplied by the shipper.<br />
+
| Shipment tracking number supplied by the shipper.
 
|- valign="top"
 
|- valign="top"
 
| OrderQty
 
| OrderQty
Line 378: Line 378:
 
| not null
 
| not null
 
|  
 
|  
| Quantity ordered per product.<br />
+
| Quantity ordered per product.
 
|- valign="top"
 
|- valign="top"
 
| ProductID
 
| ProductID
Line 384: Line 384:
 
| not null
 
| not null
 
|  
 
|  
| Product sold to customer. Foreign key to Product.ProductID.<br />IX_SalesOrderDetail_ProductID
+
| Product sold to customer. Foreign key to Product.ProductID.IX_SalesOrderDetail_ProductID
 
|- valign="top"
 
|- valign="top"
 
| SpecialOfferID
 
| SpecialOfferID
Line 390: Line 390:
 
| not null
 
| not null
 
|  
 
|  
| Promotional code. Foreign key to SpecialOffer.SpecialOfferID.<br />
+
| Promotional code. Foreign key to SpecialOffer.SpecialOfferID.
 
|- valign="top"
 
|- valign="top"
 
| UnitPrice
 
| UnitPrice
Line 396: Line 396:
 
| not null
 
| not null
 
|  
 
|  
| Selling price of a single product.<br />
+
| Selling price of a single product.
 
|- valign="top"
 
|- valign="top"
 
| UnitPriceDiscount
 
| UnitPriceDiscount
Line 402: Line 402:
 
| not null
 
| not null
 
| (0.0)
 
| (0.0)
| Discount amount.<br />
+
| Discount amount.
 
|- valign="top"
 
|- valign="top"
 
| LineTotal
 
| LineTotal
Line 408: Line 408:
 
|  
 
|  
 
|  
 
|  
| Per product subtotal. Computed as UnitPrice * (1 - UnitPriceDiscount) * OrderQty.<br />
+
| Per product subtotal. Computed as UnitPrice * (1 - UnitPriceDiscount) * OrderQty.
 
|- valign="top"
 
|- valign="top"
 
| rowguid
 
| rowguid
Line 414: Line 414:
 
| not null
 
| not null
 
| (NEWID())
 
| (NEWID())
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_SalesOrderDetail_rowguid
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.AK_SalesOrderDetail_rowguid
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 420: Line 420:
 
| 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)