Difference between revisions of "Sales.Individual (table)"

From dbscript Online Help
Jump to: navigation, search
Line 157: 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"
 +
| '''Dependency Type
 +
| '''Object Type
 
| '''Referenced Object
 
| '''Referenced Object
| '''Object Type
+
 
| '''Dependency Type
+
| '''Child Type
 +
| '''Child Object
  
 
|-
 
|-
| [[.Sales_(schema)|.Sales]]
 
 
| Schema
 
| Schema
 
| Schema
 
| Schema
 +
| [[Sales_(schema)|.Sales]]
 +
 +
|
 +
|
 
|-
 
|-
 +
| Data Type
 +
| XML Schema Collection
 
| [[Sales.IndividualSurveySchemaCollection_(xml_schema_collection)|Sales.IndividualSurveySchemaCollection]]
 
| [[Sales.IndividualSurveySchemaCollection_(xml_schema_collection)|Sales.IndividualSurveySchemaCollection]]
| XML Schema Collection
+
 
| Data Type
+
|  
 +
|  
 
|-
 
|-
 +
| Update
 +
| Table
 
| [[Sales.Individual_(table)|Sales.Individual]]
 
| [[Sales.Individual_(table)|Sales.Individual]]
| Table
+
 
| Update
 
 
| Trigger
 
| Trigger
 
| iuIndividual
 
| iuIndividual
 
|-
 
|-
 +
| Select
 +
| Table
 
| [[Sales.Store_(table)|Sales.Store]]
 
| [[Sales.Store_(table)|Sales.Store]]
| Table
+
 
| Select
 
 
| Trigger
 
| Trigger
 
| iuIndividual
 
| iuIndividual
Line 186: Line 197:
 
{| 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"
 +
| '''Reference Type
 +
| '''Object Type
 
| '''Referencing Object
 
| '''Referencing Object
| '''Object Type
+
 
| '''Reference Type
+
| '''Child Type
 +
| '''Child Object
  
 
|-
 
|-
 +
| Select
 +
| View
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 
| [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]]
 +
 +
|
 +
|
 +
|-
 +
| Select
 
| View
 
| View
| Select
+
| [[Sales.vIndividualDemographics_(view)|Sales.vIndividualDemographics]]
 +
 
 +
|
 +
|
 
|-
 
|-
| [[Sales.vIndividualDemographics_(view)|Sales.vIndividualDemographics]]
 
| View
 
 
| Select
 
| Select
|-
+
| SQL table-valued-function
 
| [[dbo.ufnGetContactInformation_(function)|dbo.ufnGetContactInformation]]
 
| [[dbo.ufnGetContactInformation_(function)|dbo.ufnGetContactInformation]]
| SQL table-valued-function
+
 
| Select
+
|  
 +
|  
 
|-
 
|-
 +
| Update
 +
| Table
 
| [[Sales.Individual_(table)|Sales.Individual]]
 
| [[Sales.Individual_(table)|Sales.Individual]]
| Table
+
 
| Update
 
 
| Trigger
 
| Trigger
 
| iuIndividual
 
| iuIndividual
 
|-
 
|-
 +
| Update
 +
| Table
 
| [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]]
 
| [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]]
| Table
+
 
| Update
 
 
| Trigger
 
| Trigger
 
| iduSalesOrderDetail
 
| iduSalesOrderDetail
 
|-
 
|-
 +
| Select
 +
| Table
 
| [[Sales.Store_(table)|Sales.Store]]
 
| [[Sales.Store_(table)|Sales.Store]]
| Table
+
 
| Select
 
 
| Trigger
 
| Trigger
 
| iStore
 
| iStore
 
|}
 
|}

Revision as of 06:32, 30 November 2009

wikibot

Table Sales.Individual


Column Data Type Nullable Default PK Index
CustomerID int not null PK_Individual_CustomerID
ContactID int not null
Demographics xml null PXML_Individual_DemographicsXMLPATH_Individual_DemographicsXMLPROPERTY_Individual_DemographicsXMLVALUE_Individual_Demographics
ModifiedDate datetime not null (getdate())


Relation Column Referenced Column
Person.Contact ContactID ContactID
Sales.Customer CustomerID CustomerID


Triggers Type
iuIndividual ON INSERT UPDATE

automatically generated

Table Sales.Individual
Description Demographic data about customers that purchase Adventure Works products online.


Column Data Type Nullable Default Description / PK / Index
CustomerID int not null Unique customer identification number. Foreign key to Customer.CustomerID.
PK_Individual_CustomerID
ContactID int not null Identifies the customer in the Contact table. Foreign key to Contact.ContactID.
Demographics XML null Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.
PXML_Individual_DemographicsXMLPATH_Individual_DemographicsXMLPROPERTY_Individual_DemographicsXMLVALUE_Individual_Demographics
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Person.Contact ContactID ContactID
Sales.Customer CustomerID CustomerID


Triggers Type
iuIndividual ON INSERT UPDATE


Dependency Type Object Type Referenced Object Child Type Child Object
Schema Schema .Sales
Data Type XML Schema Collection Sales.IndividualSurveySchemaCollection
Update Table Sales.Individual Trigger iuIndividual
Select Table Sales.Store Trigger iuIndividual


Reference Type Object Type Referencing Object Child Type Child Object
Select View Sales.vIndividualCustomer
Select View Sales.vIndividualDemographics
Select SQL table-valued-function dbo.ufnGetContactInformation
Update Table Sales.Individual Trigger iuIndividual
Update Table Sales.SalesOrderDetail Trigger iduSalesOrderDetail
Select Table Sales.Store Trigger iStore