Difference between revisions of "Purchasing.ShipMethod (table)"

From dbscript Online Help
Jump to: navigation, search
 
(18 intermediate revisions by 2 users not shown)
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
 
| Purchasing.ShipMethod
 
| Purchasing.ShipMethod
|-
+
|- valign="top"
 +
| '''Description
 +
| Shipping company lookup table.
 
|}
 
|}
  
 
+
=== 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 15: Line 17:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description
| '''Index
+
 
+
|- valign="top"
|-
 
 
| ShipMethodID
 
| ShipMethodID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_ShipMethod_ShipMethodID
+
| Primary key for ShipMethod records.
|
+
|- valign="top"
|-
 
 
| Name
 
| Name
 
| dbo.Name
 
| dbo.Name
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Shipping company name.
| AK_ShipMethod_Name
+
|- valign="top"
|-
 
 
| ShipBase
 
| ShipBase
 
| money
 
| money
 
| not null
 
| not null
 
| ((0.00))
 
| ((0.00))
|  
+
| Minimum shipping charge.
|
+
|- valign="top"
|-
 
 
| ShipRate
 
| ShipRate
 
| money
 
| money
 
| not null
 
| not null
 
| ((0.00))
 
| ((0.00))
|  
+
| Shipping charge per pound.
|
+
|- valign="top"
|-
 
 
| rowguid
 
| rowguid
 
| uniqueidentifier
 
| uniqueidentifier
 
| not null
 
| not null
 
| (newid())
 
| (newid())
|  
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
| AK_ShipMethod_rowguid
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.
|  
+
|}
 +
 
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|- valign="top"
 +
| PK_ShipMethod_ShipMethodID
 +
| ShipMethodID
 +
|}
 +
 
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 
 +
|- valign="top"
 +
| AK_ShipMethod_Name
 +
| Unique
 +
| Name
 +
|- valign="top"
 +
| AK_ShipMethod_rowguid
 +
| Unique
 +
| rowguid
 
|}
 
|}
  
 +
=== Check Constraints ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Check Constraint
 +
| '''Expression
 +
| '''Description
  
 +
|- valign="top"
 +
| CK_ShipMethod_ShipBase
 +
| ([ShipBase]>(0.00))
 +
| Check constraint [ShipBase] > (0.00)
 +
|- valign="top"
 +
| CK_ShipMethod_ShipRate
 +
| ([ShipRate]>(0.00))
 +
| Check constraint [ShipRate] > (0.00)
 +
|}
  
 +
=== Detail Tables ===
 
{| 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 69: Line 107:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
+
 
|-
+
|- valign="top"
 
| [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]]
 
| [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]]
 
| ShipMethodID
 
| ShipMethodID
 
| ShipMethodID
 
| ShipMethodID
|-
+
|- valign="top"
 
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]
 
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]
 
| ShipMethodID
 
| ShipMethodID
 
| ShipMethodID
 
| ShipMethodID
 
|}
 
|}
 +
 +
=== References ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|- valign="top"
 +
| Data Type
 +
| Type
 +
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|- valign="top"
 +
| Schema
 +
| Schema
 +
| [[Purchasing_(schema)|Purchasing]]
 +
 +
|}
 +
  
 
== wikivalues ==
 
== wikivalues ==
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''Table Values
 
| '''Table Values
 
| Purchasing.ShipMethod
 
| Purchasing.ShipMethod
|-
 
 
|}
 
|}
  
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
  
{| border="1" cellpadding="5" cellspacing="0"  style="border-collapse:collapse"
 
|- style="background:silver"
 
 
| '''ShipMethodID
 
| '''ShipMethodID
 
| '''Name
 
| '''Name
 
| '''ShipBase
 
| '''ShipBase
 
| '''ShipRate
 
| '''ShipRate
|-  
+
|- valign="top"
| 1
+
 
| XRQ - TRUCK GROUND
+
| 1
| 3.95
+
| XRQ - TRUCK GROUND
| 0.99
+
| 3.95
|-  
+
| 0.99
| 2
+
|- valign="top"
| ZY - EXPRESS
+
 
| 9.95
+
| 2
| 1.99
+
| ZY - EXPRESS
|-  
+
| 9.95
| 3
+
| 1.99
| OVERSEAS - DELUXE
+
|- valign="top"
| 29.95
+
 
| 2.99
+
| 3
|-  
+
| OVERSEAS - DELUXE
| 4
+
| 29.95
| OVERNIGHT J-FAST
+
| 2.99
| 21.95
+
|- valign="top"
| 1.29
+
 
|-  
+
| 4
| 5
+
| OVERNIGHT J-FAST
| CARGO TRANSPORT 5
+
| 21.95
| 8.99
+
| 1.29
| 1.49
+
|- valign="top"
 +
 
 +
| 5
 +
| CARGO TRANSPORT 5
 +
| 8.99
 +
| 1.49
 +
|}
 +
 
 +
== automatically generated ==
 +
 
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|-
 +
| '''Table
 +
| Purchasing.ShipMethod
 +
|- valign="top"
 +
| '''Description
 +
| Shipping company lookup table.
 +
|-
 +
|}
 +
 
 +
 
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Column
 +
| '''Data Type
 +
| '''Nullable
 +
| '''Default
 +
| '''Description / PK / Index
 +
 +
|- valign="top"
 +
| ShipMethodID
 +
| int
 +
| not null
 +
|
 +
| Primary key for ShipMethod records.<br />PK_ShipMethod_ShipMethodID
 +
|- valign="top"
 +
| Name
 +
| Name
 +
| not null
 +
|
 +
| Shipping company name.<br />AK_ShipMethod_Name
 +
|- valign="top"
 +
| ShipBase
 +
| money
 +
| not null
 +
| (0.00)
 +
| Minimum shipping charge.<br />
 +
|- valign="top"
 +
| ShipRate
 +
| money
 +
| not null
 +
| (0.00)
 +
| Shipping charge per pound.<br />
 +
|- valign="top"
 +
| rowguid
 +
| uniqueidentifier
 +
| not null
 +
| (NEWID())
 +
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_ShipMethod_rowguid
 +
|- valign="top"
 +
| ModifiedDate
 +
| datetime
 +
| not null
 +
| (GETDATE())
 +
| Date and time the record was last updated.<br />
 +
|}
 +
 
 +
 
 +
 
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Detail Table
 +
| '''Column
 +
| '''Referencing Column
 +
 +
|-
 +
| [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]]
 +
| ShipMethodID
 +
| ShipMethodID
 +
|-
 +
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]
 +
| ShipMethodID
 +
| ShipMethodID
 +
|}
 +
 
 +
 
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 
 +
|-
 +
| Data Type
 +
| Type
 +
| [[dbo.Name_(type)|dbo.Name]]
 +
 
 +
|-
 +
| Schema
 +
| Schema
 +
| [[Purchasing_(schema)|Purchasing]]
 +
 
 
|}
 
|}

Latest revision as of 09:56, 27 August 2011

wikibot[edit]

Table Purchasing.ShipMethod
Description Shipping company lookup table.

Columns[edit]

Column Data Type Nullable Default Description
ShipMethodID int not null Primary key for ShipMethod records.
Name dbo.Name not null Shipping company name.
ShipBase money not null ((0.00)) Minimum shipping charge.
ShipRate money not null ((0.00)) Shipping charge per pound.
rowguid uniqueidentifier not null (newid()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.

Primary Key[edit]

Primary Key Columns
PK_ShipMethod_ShipMethodID ShipMethodID

Indexes[edit]

Index Type Columns
AK_ShipMethod_Name Unique Name
AK_ShipMethod_rowguid Unique rowguid

Check Constraints[edit]

Check Constraint Expression Description
CK_ShipMethod_ShipBase ([ShipBase]>(0.00)) Check constraint [ShipBase] > (0.00)
CK_ShipMethod_ShipRate ([ShipRate]>(0.00)) Check constraint [ShipRate] > (0.00)

Detail Tables[edit]

Detail Table Column Referencing Column
Purchasing.PurchaseOrderHeader ShipMethodID ShipMethodID
Sales.SalesOrderHeader ShipMethodID ShipMethodID

References[edit]

Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Purchasing


wikivalues[edit]

Table Values Purchasing.ShipMethod
ShipMethodID Name ShipBase ShipRate
1 XRQ - TRUCK GROUND 3.95 0.99
2 ZY - EXPRESS 9.95 1.99
3 OVERSEAS - DELUXE 29.95 2.99
4 OVERNIGHT J-FAST 21.95 1.29
5 CARGO TRANSPORT 5 8.99 1.49

automatically generated[edit]

Table Purchasing.ShipMethod
Description Shipping company lookup table.


Column Data Type Nullable Default Description / PK / Index
ShipMethodID int not null Primary key for ShipMethod records.
PK_ShipMethod_ShipMethodID
Name Name not null Shipping company name.
AK_ShipMethod_Name
ShipBase money not null (0.00) Minimum shipping charge.
ShipRate money not null (0.00) Shipping charge per pound.
rowguid uniqueidentifier not null (NEWID()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_ShipMethod_rowguid
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Detail Table Column Referencing Column
Purchasing.PurchaseOrderHeader ShipMethodID ShipMethodID
Sales.SalesOrderHeader ShipMethodID ShipMethodID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Purchasing