| AdventureWorks Database > Sales Schema : Sales.vIndividualDemographics View |
| Creation Date | 08/01/2010 08:41 |
| Is Schema Bound | ![]() |
| Encrypted | ![]() |
| Ansi Nulls | ![]() |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| CustomerID | int | 4 | |||||
| TotalPurchaseYTD | money | 8 | ![]() | ||||
| DateFirstPurchase | datetime | 4 | ![]() | ||||
| BirthDate | datetime | 4 | ![]() | ||||
| MaritalStatus | nvarchar | 1 | ![]() | ||||
| YearlyIncome | nvarchar | 30 | ![]() | ||||
| Gender | nvarchar | 1 | ![]() | ||||
| TotalChildren | int | 4 | ![]() | ||||
| NumberChildrenAtHome | int | 4 | ![]() | ||||
| Education | nvarchar | 30 | ![]() | ||||
| Occupation | nvarchar | 30 | ![]() | ||||
| HomeOwnerFlag | bit | 1 | ![]() | ||||
| NumberCarsOwned | int | 4 | ![]() |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | Person.Contact | Table | Names of each employee, customer contact, and vendor contact. | 2 |
![]() | Sales.Customer | Table | Current customer information. Also see the Individual and Store tables. | 2 |
![]() | HumanResources.Employee | Table | Employee information such as salary, department, and title. | 4 |
![]() | dbo.ErrorLog | Table | Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct. Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct. | 4 |
![]() | dbo.Flag | User Defined Data Type | 5 | |
![]() | Sales.Individual | Table | Demographic data about customers that purchase Adventure Works products online. | 1 |
![]() | dbo.NameStyle | User Defined Data Type | 3 | |
![]() | dbo.Phone | User Defined Data Type | 3 | |
![]() | Sales.SalesPerson | Table | Sales representative current information. | 3 |
![]() | Sales.SalesTerritory | Table | Sales territory lookup table. | 3 |
![]() | Sales.Store | Table | Customers (resellers) of Adventure Works products. | 2 |
![]() | dbo.ufnLeadingZeros | User Defined Function | Scalar function used by the Sales.Customer table to help set the account number. | 3 |
![]() | dbo.uspLogError | Stored Procedure | Logs error information in the ErrorLog table about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without inserting error information. | 3 |
![]() | dbo.uspPrintError | Stored Procedure | Prints error information about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without printing any error information. | 3 |
|