Difference between revisions of "Sales.Individual (table)"
| Line 76: | Line 76: | ||
| ON INSERT UPDATE | | ON INSERT UPDATE | ||
|} | |} | ||
| − | |||
== automatically generated == | == automatically generated == | ||
| Line 98: | Line 97: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description / PK / Index |
| − | |||
| − | |- | + | |- valign="top" |
| CustomerID | | CustomerID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | Unique customer identification number. Foreign key to Customer.CustomerID. | + | | Unique customer identification number. Foreign key to Customer.CustomerID.PK_Individual_CustomerID |
| − | + | |- valign="top" | |
| − | |- | ||
| ContactID | | ContactID | ||
| int | | int | ||
| Line 114: | Line 111: | ||
| | | | ||
| Identifies the customer in the Contact table. Foreign key to Contact.ContactID. | | Identifies the customer in the Contact table. Foreign key to Contact.ContactID. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| Demographics | | Demographics | ||
| XML | | XML | ||
| null | | null | ||
| | | | ||
| − | | Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis. | + | | Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.PXML_Individual_DemographicsXMLPATH_Individual_DemographicsXMLPROPERTY_Individual_DemographicsXMLVALUE_Individual_Demographics |
| − | + | |- valign="top" | |
| − | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| Line 128: | Line 123: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
| − | |||
|} | |} | ||
| Line 158: | Line 152: | ||
| iuIndividual | | iuIndividual | ||
| ON INSERT UPDATE | | ON INSERT UPDATE | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Referenced Object | ||
| + | | '''Object Type | ||
| + | | '''Dependency Type | ||
| + | |||
| + | |- | ||
| + | | [[Sales.IndividualSurveySchemaCollection_(xml_schema_collection)|Sales.IndividualSurveySchemaCollection]] | ||
| + | | XML Schema Collection | ||
| + | | Data Type | ||
| + | |- | ||
| + | | [[Sales.Individual_(table)|Sales.Individual]] | ||
| + | | Table | ||
| + | | Update | ||
| + | |- | ||
| + | | [[Sales.Store_(table)|Sales.Store]] | ||
| + | | Table | ||
| + | | Select | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Referencing Object | ||
| + | | '''Object Type | ||
| + | | '''Reference Type | ||
| + | |||
| + | |- | ||
| + | | [[Sales.vIndividualCustomer_(view)|Sales.vIndividualCustomer]] | ||
| + | | View | ||
| + | | Select | ||
| + | |- | ||
| + | | [[Sales.vIndividualDemographics_(view)|Sales.vIndividualDemographics]] | ||
| + | | View | ||
| + | | Select | ||
| + | |- | ||
| + | | [[dbo.ufnGetContactInformation_(function)|dbo.ufnGetContactInformation]] | ||
| + | | SQL table-valued-function | ||
| + | | Select | ||
| + | |- | ||
| + | | [[Sales.Individual_(table)|Sales.Individual]] | ||
| + | | Table | ||
| + | | Update | ||
| + | |- | ||
| + | | [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]] | ||
| + | | Table | ||
| + | | Update | ||
| + | |- | ||
| + | | [[Sales.Store_(table)|Sales.Store]] | ||
| + | | Table | ||
| + | | Select | ||
|} | |} | ||
Revision as of 23:57, 26 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 |
| Referenced Object | Object Type | Dependency Type |
| Sales.IndividualSurveySchemaCollection | XML Schema Collection | Data Type |
| Sales.Individual | Table | Update |
| Sales.Store | Table | Select |
| Referencing Object | Object Type | Reference Type |
| Sales.vIndividualCustomer | View | Select |
| Sales.vIndividualDemographics | View | Select |
| dbo.ufnGetContactInformation | SQL table-valued-function | Select |
| Sales.Individual | Table | Update |
| Sales.SalesOrderDetail | Table | Update |
| Sales.Store | Table | Select |