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 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
 
| Sales.SalesOrderDetail
 
| Sales.SalesOrderDetail
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Individual products associated with a specific sales order. See SalesOrderHeader.
 
| Individual products associated with a specific sales order. See SalesOrderHeader.
 +
|-
 
|}
 
|}
 +
  
 
=== Columns ===
 
=== Columns ===
Line 18: Line 20:
 
| '''Default
 
| '''Default
 
| '''Description
 
| '''Description
 
+
 
|- valign="top"
 
|- valign="top"
 
| SalesOrderID
 
| SalesOrderID
Line 92: Line 94:
 
| '''Primary Key
 
| '''Primary Key
 
| '''Columns
 
| '''Columns
|- valign="top"
+
|-
 
| PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID
 
| PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID
 
| SalesOrderID, SalesOrderDetailID
 
| SalesOrderID, SalesOrderDetailID
Line 103: Line 105:
 
| '''Type
 
| '''Type
 
| '''Columns
 
| '''Columns
 
+
|- valign="top"
+
|-
 
| AK_SalesOrderDetail_rowguid
 
| AK_SalesOrderDetail_rowguid
 
| Unique
 
| Unique
 
| rowguid
 
| rowguid
|- valign="top"
+
|-
 
| IX_SalesOrderDetail_ProductID
 
| IX_SalesOrderDetail_ProductID
 
|  
 
|  
Line 120: Line 122:
 
| '''Expression
 
| '''Expression
 
| '''Description
 
| '''Description
 
+
|- valign="top"
+
|-
 
| CK_SalesOrderDetail_OrderQty
 
| CK_SalesOrderDetail_OrderQty
 
| ([OrderQty]>(0))
 
| ([OrderQty]>(0))
 
| Check constraint [OrderQty] > (0)
 
| Check constraint [OrderQty] > (0)
|- valign="top"
+
|-
 
| CK_SalesOrderDetail_UnitPrice
 
| CK_SalesOrderDetail_UnitPrice
 
| ([UnitPrice]>=(0.00))
 
| ([UnitPrice]>=(0.00))
 
| Check constraint [UnitPrice] >= (0.00)
 
| Check constraint [UnitPrice] >= (0.00)
|- valign="top"
+
|-
 
| CK_SalesOrderDetail_UnitPriceDiscount
 
| CK_SalesOrderDetail_UnitPriceDiscount
 
| ([UnitPriceDiscount]>=(0.00))
 
| ([UnitPriceDiscount]>=(0.00))
Line 141: Line 143:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
 
+
|- valign="top"
+
|-
 
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]
 
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]
 
| SalesOrderID
 
| SalesOrderID
 
| SalesOrderID
 
| SalesOrderID
|- valign="top"
+
|-
 
| [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]]
 
| [[Sales.SpecialOfferProduct_(table)|Sales.SpecialOfferProduct]]
 
| SpecialOfferID
 
| SpecialOfferID
Line 155: Line 157:
 
{| 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"
| '''Trigger
+
| '''Triggers
 
| '''Type
 
| '''Type
 
+
|- valign="top"
+
|-
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
 
| ON INSERT UPDATE DELETE
 
| ON INSERT UPDATE DELETE
 
|}
 
|}
  
==== Trigger iduSalesOrderDetail ====
+
Trigger iduSalesOrderDetail
 
<pre>
 
<pre>
 
CREATE TRIGGER [Sales].[iduSalesOrderDetail] ON [Sales].[SalesOrderDetail]  
 
CREATE TRIGGER [Sales].[iduSalesOrderDetail] ON [Sales].[SalesOrderDetail]  
Line 245: Line 247:
 
END;
 
END;
 
</pre>
 
</pre>
 
+
 
=== References ===
 
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
Line 256: Line 258:
 
| '''Child Object
 
| '''Child Object
  
|- valign="top"
+
|-
 
| Schema
 
| Schema
 
| Schema
 
| Schema
Line 263: Line 265:
 
|  
 
|  
 
|  
 
|  
|- valign="top"
+
|-
 
| Insert
 
| Insert
 
| Table
 
| Table
Line 270: Line 272:
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
|- valign="top"
+
|-
 
| Update
 
| Update
 
| Table
 
| Table
Line 277: Line 279:
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
|- valign="top"
+
|-
 
| Select
 
| Select
 
| Table
 
| Table
Line 284: Line 286:
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
|- valign="top"
+
|-
 
| Select
 
| Select
 
| Table
 
| Table
Line 291: Line 293:
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
|- valign="top"
+
|-
 
| Update
 
| Update
 
| Table
 
| Table
Line 298: Line 300:
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
|- valign="top"
+
|-
 
| Execute
 
| Execute
 
| Procedure
 
| Procedure
Line 305: Line 307:
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
|- valign="top"
+
|-
 
| Execute
 
| Execute
 
| Procedure
 
| Procedure
Line 324: Line 326:
 
| '''Child Object
 
| '''Child Object
  
|- valign="top"
+
|-
 
| Select
 
| Select
 
| Table
 
| Table

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)