Editing Sales.SalesOrderDetail (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 360: | Line 360: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to SalesOrderHeader.SalesOrderID. | + | | 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. | + | | 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. | + | | 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. | + | | 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. | + | | 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. | + | | 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. | + | | 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. | + | | Discount amount. |
|- valign="top" | |- valign="top" | ||
| LineTotal | | LineTotal | ||
Line 408: | Line 408: | ||
| | | | ||
| | | | ||
− | | Per product subtotal. Computed as UnitPrice * (1 - UnitPriceDiscount) * OrderQty. | + | | 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. | + | | 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. | + | | Date and time the record was last updated. |
|} | |} | ||