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

From dbscript Online Help
Jump to: navigation, search
 
(One intermediate revision by the same user 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.VendorAddress
 
| Purchasing.VendorAddress
Line 8: Line 8:
 
| '''Description
 
| '''Description
 
| Cross-reference mapping vendors and addresses.
 
| Cross-reference mapping vendors and addresses.
|-
 
 
|}
 
|}
  
 
+
=== 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 18: Line 17:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
+
 
 
|- valign="top"
 
|- valign="top"
 
| VendorID
 
| VendorID
Line 25: Line 24:
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to Vendor.VendorID.<br />PK_VendorAddress_VendorID_AddressID
+
| Primary key. Foreign key to Vendor.VendorID.
 
|- valign="top"
 
|- valign="top"
 
| AddressID
 
| AddressID
Line 31: Line 30:
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to Address.AddressID.<br />PK_VendorAddress_VendorID_AddressIDIX_VendorAddress_AddressID
+
| Primary key. Foreign key to Address.AddressID.
 
|- valign="top"
 
|- valign="top"
 
| AddressTypeID
 
| AddressTypeID
Line 37: Line 36:
 
| not null
 
| not null
 
|  
 
|  
| Address type. Foreign key to AddressType.AddressTypeID.<br />
+
| Address type. Foreign key to AddressType.AddressTypeID.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 43: Line 42:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.<br />
+
| 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_VendorAddress_VendorID_AddressID
 +
| VendorID, AddressID
 
|}
 
|}
  
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
  
 +
|- valign="top"
 +
| IX_VendorAddress_AddressID
 +
|
 +
| AddressID
 +
|}
  
 +
=== Foreign Keys ===
 
{| 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 53: Line 74:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
+
 
|-
+
|- valign="top"
 
| [[Person.Address_(table)|Person.Address]]
 
| [[Person.Address_(table)|Person.Address]]
 
| AddressID
 
| AddressID
 
| AddressID
 
| AddressID
|-
+
|- valign="top"
 
| [[Person.AddressType_(table)|Person.AddressType]]
 
| [[Person.AddressType_(table)|Person.AddressType]]
 
| AddressTypeID
 
| AddressTypeID
 
| AddressTypeID
 
| AddressTypeID
|-
+
|- valign="top"
 
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]]
 
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]]
 
| VendorID
 
| VendorID
Line 68: Line 89:
 
|}
 
|}
  
 +
=== References ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|- valign="top"
 +
| Schema
 +
| Schema
 +
| [[Purchasing_(schema)|Purchasing]]
  
 +
|}
 +
 +
=== Dependencies ===
 
{| 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 75: Line 110:
 
| '''Referencing Object
 
| '''Referencing Object
  
|-
+
|- valign="top"
 
| Select
 
| Select
 
| View
 
| View
Line 81: Line 116:
  
 
|}
 
|}
 
  
  

Latest revision as of 00:17, 24 June 2010

wikibot[edit]

Table Purchasing.VendorAddress
Description Cross-reference mapping vendors and addresses.

Columns[edit]

Column Data Type Nullable Default Description
VendorID int not null Primary key. Foreign key to Vendor.VendorID.
AddressID int not null Primary key. Foreign key to Address.AddressID.
AddressTypeID int not null Address type. Foreign key to AddressType.AddressTypeID.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.

Primary Key[edit]

Primary Key Columns
PK_VendorAddress_VendorID_AddressID VendorID, AddressID

Indexes[edit]

Index Type Columns
IX_VendorAddress_AddressID AddressID

Foreign Keys[edit]

Relation Column Referenced Column
Person.Address AddressID AddressID
Person.AddressType AddressTypeID AddressTypeID
Purchasing.Vendor VendorID VendorID

References[edit]

Dependency Type Object Type Referenced Object
Schema Schema Purchasing

Dependencies[edit]

Reference Type Object Type Referencing Object
Select View Purchasing.vVendor


automatically generated[edit]

Table Purchasing.VendorAddress
Description Cross-reference mapping vendors and addresses.


Column Data Type Nullable Default Description / PK / Index
VendorID int not null Primary key. Foreign key to Vendor.VendorID.
PK_VendorAddress_VendorID_AddressID
AddressID int not null Primary key. Foreign key to Address.AddressID.
PK_VendorAddress_VendorID_AddressIDIX_VendorAddress_AddressID
AddressTypeID int not null Address type. Foreign key to AddressType.AddressTypeID.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Person.Address AddressID AddressID
Person.AddressType AddressTypeID AddressTypeID
Purchasing.Vendor VendorID VendorID


Dependency Type Object Type Referenced Object
Schema Schema Purchasing


Reference Type Object Type Referencing Object
Select View Purchasing.vVendor