0% found this document useful (0 votes)
13 views6 pages

Customer Table - Customer Customer - Customertype I'

The document describes the structure of a customer data model with tables for customer, geographic, currency, fact, promotion, product, and time data including primary and foreign keys.

Uploaded by

Hiếu Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views6 pages

Customer Table - Customer Customer - Customertype I'

The document describes the structure of a customer data model with tables for customer, geographic, currency, fact, promotion, product, and time data including primary and foreign keys.

Uploaded by

Hiếu Nguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Customer

Table.Customer Customer.CustomerType = ‘I’


CustomerID (PK, identity)

Title
(Person.Contact.Title)

FirstName
(Person.Contact.FirstName)

MiddleName
(Person.Contact.MiddleName)

LastName
(Person.Contact.LastName)

Email
(Person.Contact.EmailAddress)

Suffix
(Person.Contact.Suffix)

Gender
(Sales.Individual.Demographics.Gender)

BirthDate
(Sales.Individual.Demographics.BirthDate)

MaritialStatus
(Sales.Individual.Demographics.MaritialStatus)

YearLyInCome
(Sales.Individual.Demographics.YearLyInCome)

TotalChildren
(Sales.Individual.Demographics.TotalChildren)

NumberChildrentAtHome
(Sales.Individual.Demographics
.NumberChildrentAtHome)

Education
(Sales.Individual.Demographics.Education)

Occupation
(Sales.Individual.Demographics.Occupation)

HomeOwnerFlag
(Sales.Individual.Demographics
.HomeOwnerFlag)

NumberCarsOwned
(Sales.Individual.Demographics
.NumberCarsOwned)

CommuteDistance
(Sales.Individual.Demographics. CommuteDistance)
State
(Person.StateProvince.Name)

City
(Person.Address.City)

AddressLine1
(Person.Address.AddressLine1)

AddressLine2
(Person.Address.AddressLine2)

Phone
(Person.Contact.Phone)

CustomerId_OP
(Sales.Invidual.CustomerID)

Geographic
GeographicID(PK, identity)

TerritoryID_OP
(Sales.SalesTerritory.TerritoryID)

Region
(Sales.SalesTerritory.Group)

Country
(Sale.SalesTerritory.Name

Currency
CurrencyID_OP
(Sales.Currency.CurrencyCode)

Name
(Sales.Currency.Name)

Fact
OrderCurrency
(=Sum(Sale.SalesOrderHeader.TotalDue))

CostCurrency
(=Sum(Sales.SalesOrderHeader.SubTotal))

VAT
(=Sum(Sales.SalesOrderHeader.TaxAmt))

FreightCurrency
(=Sum(Sales.SalesOrderHeader.Freight))

MarginCurrency
(=Sum(OrderCurrency – CostCurrency))

OrderDate (FK)
(Sales.SalesOrderHeader.OrderDate)

ShipDate (FK)
(Sales.SalesOrderHeader.ShipDate)

DueDate (FK)
(Sales.SalesOrderHeader.DueDate)

DelayDate
(Sales.SalesOrderHeader.ShipDate –
Sales.SalesOrderHeader.DueDate)

CustomerID (FK)

ProductID (FK)

GeographicID (FK)

PromotionID (FK)

CurrencyID (FK)

Promotion
PromotionID (PK, identity)

SpecialOfferID
(Sales.SpecialOffer.SpecialOfferID)

Type
(Sales.SpecialOffer.Type)

StartDate
(Sales.SpecialOffer.StartDate)

EndDate
(Sales.SpecialOffer.EndDate)

MinQuantity
(Sales.SpecialOffer.MinQuantity)

MaxQuantity
(Sales.SpecialOffer.MaxQuantity)

Product
ProductID (PK, identity)

Color
(Production.Product.Color)

StandardCost
(Production.Product.StandardCost)
(Type: 0-100, 100-200,… 1000-2000,…,>4000)

ListPrice
(Production.Product.ListPrice)
(Type: 0-100, 100-200,… 1000-2000,…,>4000)

Size
(Production.Product.Size)

SizeUnitMeasure
(Production.Product.SizeMeasure)

Weight
(Production.Product.Weight)
(Type: 0-50, 50-100, 100-150,150-200, 200-250, 250-300, >300)

WeightUnitMeasure
(Production.Product.WeightUnitMeasure)
(Type: 0-50, 50-100, 100-150,150-200, 200-250, 250-300, >300)

ProductLine
(Production.Product.ProductLine)
Class
(Production.Product.Class)

Style
(Production.Product.Style)

Category
(Production.ProductCategory.Name)

Subcategory
(Production.ProductSubcategory.Name)

Model
(Production.ProductModel.Name)

Time
Year
Month
Date (PK)

You might also like