Anda di halaman 1dari 25

Lecture 6

Lecture 6

Cover
Case Study
Design Decision
3
Case Study: Perfect Property Sales Division

Perfect Property is a real estate company. Their current operational database has
been running for five years and contains information regarding the properties
they offer for sale, contact details for the property vendors, and contact details
and property preferences for registered prospective buyers. Their operational
database also stores details relating to the sale of properties such as the sold date,
purchase price, buyer and the agent responsible for the sale.
Property information includes: the propertys street address, suburb, zone, state
and postcode, and a number of attributes that describe the property. These
attributes include: property type; number of bedrooms; number of bathrooms;
size of garage (if any); land size (if applicable); whether or not the property has
central heating; and which aspect it faces (north, south, east or west). The
property vendor also specifies a reserve price for the property.
Vendor information includes: the vendors first name and last name, the vendors
street address, suburb, postcode, contact telephone number and email address.
Similar information is kept for buyers and the real estate agents.

Case Study: Perfect Property Sales 4

Division
Prospective buyer information includes: the buyers first name and last name,
the buyers street address, suburb, postcode, contact telephone number, email
address and a list of property preferences.
The property preferences include: preferred property type; a minimum and
maximum number of bedrooms; preferred number of bathrooms; whether a
garage is required and how many cars it should hold; land size; whether or
not they prefer central heating; the aspect they prefer (north, south, east or
west), their preferred suburb; and their price range.
To assist their sales, Perfect Property provides a property alert service to
registered prospective buyers whereby the prospective buyers are sent email
alerts whenever a property that matches their preferences becomes available.
If the prospective buyer wishes to view a property they can make an
appointment with the real estate agent to meet them at the property location.
Once they have viewed the property the real estate agent collects their
comments on the property and asks them to rate their interest in the property
based on a scale from 1 5, where 1 is not interested and 5 is extremely
interested.
Case Study: Perfect Property Sales 5

Division
There is a desire within Perfect Property for improved access to company and
market information. The business analysts are particularly interested in
analysing the demand for properties to determine if there have been changes
in recent times to what prospective buyers are looking for and whether the
available properties are meeting demand. This is crucial information as the
majority of the companys revenue comes from property sales commissions.
They hope to use the information gathered to direct free appraisal invitations
to owners of popular property types in a bid to drum up business that reflects
current preferences.
Perfect Property are also interested in leveraging market information to assist them in
providing estimates of selling price ranges for different property types in their area. The
Real Estate Institute provides market information for purchase in flat file format.
Perfect Property purchases the following files: Weekly median house prices by suburb;
Weekly median Townhouse prices by suburb; Weekly median Unit/Apartment prices
by suburb; and Weekly median Land prices by suburb. Suburbs then roll-up to zones
and states.

Case Study: Perfect Property Sales 6

Division
From another provider, Perfect Property can obtain weekly
property clearance rates for each property type in each suburb. This
information is useful for them to assess their effectiveness in the
market by comparing their clearance rates with the national
average.
Some typical analytical questions the business users may want answers
to include:
How many properties of each property type (Houses, Townhouses,
Units/Apartments, Land) did we sell this quarter? How does that
figure compare with last quarter? How does that figure compare
with the same time in the previous year?
In the last quarter what was the median price for houses within our
zone? How does that compare with the median price for houses we
sold in the last quarter?
Case Study: Perfect Property Sales 7

Division
Have any of our properties been on the market for longer than 6
months? If so, do these properties share any similar
characteristics?
What are the most popular preferences that prospective buyers give
for properties in terms of property type? What are the most popular
preferences that prospective buyers give for residential properties
in terms of number of bedrooms, number of car spaces and number
of bathrooms?
Which of our agents has sold the most properties in the last
quarter?
What is the average amount over the reserve prices that our
properties are selling for?
How many of our prospective buyers do we have suitable properties
for? Is their a particular set of preferences that we are having
difficulty meeting?
1. Determine DW Bus Matrix

Three primary business processes


property sales
alert/appointment service
market analysis

8
1. Determine DW Bus Matrix (cont)

Dimensions
Business

Sources (optional)
Prospective Buyer

Property Type
Preferences
Processes

Property

Location
Vendor

Agents
Buyer
Time
Date
Property Sales X X X X X X X
Alert / Appointment Services X X X X X X
Market Analysis X X X

9
2. Design Data Marts Property Sales
Property Sales Fact Date Dimension

Property Dimension Property Key (FK) Date Key (PK)


Date Key (FK) Date
Property Key (PK) Vendor Key (FK) Full Date Description
Buyer Key (FK) Day of Week
Property Street Add (FK) Day Number in Calendar Month
Agent Key
Property Suburb (FK) Day Number in Calendar Year
Property Key Day Number in Fiscal Month
Property Zone (FK)
Location Key Day Number in Fiscal Year
Property State
Calendar Month Name
Property Postcode Dollar Price Sold
Calendar Month Number in Year
Property Type Desc Dollar Reserve Price Calendar Year
Number of Bedrooms Fiscal Week Number in Year
Number of Bathrooms Fiscal Month
Location Dimension Fiscal Month Number in Year
Size of Garage
Land Size Fiscal Year-Month
Fiscal Quarter
Central Heating (yes/no)
Fiscal Year-Quarter
Aspect Facing ProperType Dimension
Fiscal Year

Vendor Dimension
Buyer Dimension Agent Dimension
Vendor Key (PK)
Vendor First Name Buyer Key (PK) Agent Key (PK)
Vendor Last Name Buyer First Name Agent First Name
Vendor Street Add Buyer Last Name Agent Last Name
Vendor Suburb Buyer Street Add Agent Street Add
Vendor Postcode Buyer Suburb Agent Suburb
Vendor Contact Number Buyer Postcode Agent Postcode
Vendor Email Add Buyer Contact Number Agent Contact Number
Buyer Email Add Agent Email Add 10
2. Design Data Marts Alert/Appointment
Prospective Buyer Dimension
Prospective Buyer Key (PK)
Property Dimension
Alert/Appointment Fact Prospective Buyer First Name
Prospective Buyer Last Name
Property Key (PK) Prospective Buyer Key (FK) Prospective Buyer Street Add
Attributes as per Property Key (FK) Prospective Buyer Suburb
Property Dimension in Agent Key (FK) Prospective Buyer Postcode
Property Sales Data Alert Date Key Prospective Buyer Contact Phone
(FK)
Prospective Buyer Email Add
Mart Alert TimeofDay (FK) Preferred Property Type Desc
Appointment Date Key (FK) Preferred Suburb
Agent Dimension Appointment TimeofDay (FK) Minimum Number of Bedrooms
(PK) Rating Maximum Number of Bedrooms
Agent Key Preferred Number of Bathrooms
Number of Cars Garage
Attributes as per Agent Alert Date Dimension Preferred Land Size
Dimension in Property Central Heating (yes/no)
Sales Data Mart Alert Date Key (PK) Aspect Facing
Minimum Price
Attributes as per Time Maximum Price
Appoint. Date Dimension Dimension in Property
Sales Data Mart
Appointment Date Key (PK) Alert TimeofDay Dimension
Attributes as per Time Alert Time Key (PK)
Dimension in Property Appoint. TimeofDay Dimension Time
Sales Data Mart Appoint TimeofDay Key (PK) Hours
Time Minutes
Hours AM/PM indicator
Minutes
AM/PM indicator
11
2. Design Data Marts Market Analysis
Date Dimension
Location Dimension Date Key (PK)
Location Key (PK) Week Number in Calendar Month
Week Number in Calendar Year
Location Street Market Analysis Fact Week Number in Fiscal Month
Location Suburb
Date Key (FK) Week Number in Fiscal Year
Suburb Population
Location Key (FK) Calendar Month Name
Suburb Map
Property Type Key (FK) Calendar Month Number in Year
Adjacent Suburbs
Source Median Key (FK) Calendar Year
Zone
Source Clearance Key (FK) Fiscal Month Number in Year
State
Median Dollar Price Fiscal Year-Month
Clearance Rate Percentage Fiscal Quarter
Property Type Dimension Fiscal Year-Quarter
Fiscal Year
Property Type Key (PK)
Property Type Desc

Clearance Rate Source Dimension


Median Source Dimension Clearance Rate Source Key (PK)
Clearance Rate Source Name
Source Median Key (PK) Clearance Rate Source Address
Source Median Name Clearance Rate Source Contact Name
Source Median Address Clearance Rate Source Contact Number
Source Median Contact Name
Source Median Contact Number
12
3. Sample Rows for tables Vendor Dimension

Vendor Key
Vendor First Name
Vendor Last Name
Vendor Street Add
Vendor Suburb
Vendor Postcode
Vendor Contact Number
Vendor Email Add

Vendor Vendor Vendor Vendor Vendor Vendor Vendor Vendor Email


Key First Name Last Name Street Add Suburb Postcode Contact # Add
V101 Greg Gregson 20 Bond St Kew 3101 93450695 amy@abc.com

V102 Jamie King 15 Larry Gv Prahran 3181 99450943 jamal@lycos.net

V103 Jonah Takalua 2 Queen St Box Hill 3128 98304560 lee@abc.com

V104 Doug Peterson 1 Mary Cr Ivanhoe 3179 93284837 dp@yahoo.com

13
3. Sample Rows for tables Date Dimension
Date Key
Date
Full Date Description
Day of Week
Day Number in Calendar Month
Date Key Date Full Date Day of Day Number in Day Number in Calendar Year
Description Week Cal Month Day Number in Fiscal Month
1 01/01/05 First of Saturday 1 Day Number in Fiscal Year
January 2005 Calendar Month Name
Calendar Month Number in Year
2 02/01/05 Second of Sunday 2 Calendar Year
January 2005 Fiscal Week Number in Year
Fiscal Month
3 03/01/05 Third of Monday 3 Fiscal Month Number in Year
January 2005 Fiscal Year-Month
4 04/01/05 Fourth of Tuesday 4 Fiscal Quarter
January 2005 Fiscal Year-Quarter
Fiscal Year

Day Number in Day Number in Day Number Cal Month Cal Month Cal ...
Cal Year Fiscal Month in Fiscal Year Name Number in Year Year
1 1 183 January 1 2005

2 2 184 January 1 2005

3 3 185 January 1 2005

4 4 186 January 1 2005

14
3. Sample Rows for tables
Property Sales Fact
Property Key
Date Key
Vendor Key
Buyer Key
Agent Key
Dollar Price Sold
Dollar Reserve Price

Property Date Key Vendor Key Buyer Key Agent Key Dollar Price Dollar Reserve
Key Sold Price
P105 1000 V101 B002 A100 350,000 320,000

P106 1000 V101 B345 A100 400,000 399,000

P107 1002 V102 B121 A100 278,500 250,000

P108 1004 V103 B121 A100 1,345,000 1,000,000

15
4. OLAP Query

In the last quarter what was the median price for houses
within our zone? How does that compare with the
median price for houses sold in the last quarter?
Which business process ?
Market Analysis
Which fact(s) ?
Market Analysis Fact
Which dimension(s) ?
Property Type Dimension, Date Dimension, Location Dimension
Which attribute(s) ?
In Market Analysis Fact (); In Property Type Dimension (); In
Date Dimension (); In Location Dimension ()

16
2. Design Data Marts Market Analysis
Date Dimension
Location Dimension Date Key (PK)
Location Key (PK) Week Number in Calendar Month
Week Number in Calendar Year
Location Street Market Analysis Fact Week Number in Fiscal Month
Location Suburb
Date Key (FK) Week Number in Fiscal Year
Suburb Population
Location Key (FK) Calendar Month Name
Suburb Map
Property Type Key (FK) Calendar Month Number in Year
Adjacent Suburbs
Source Median Key (FK) Calendar Year
Zone
Source Clearance Key (FK) Fiscal Month Number in Year
State
Median Dollar Price Fiscal Year-Month
Clearance Rate Percentage Fiscal Quarter
Property Type Dimension Fiscal Year-Quarter
Fiscal Year
Property Type Key (PK)
Property Type Desc

Clearance Rate Source Dimension


Median Source Dimension Clearance Rate Source Key (PK)
Clearance Rate Source Name
Source Median Key (PK) Clearance Rate Source Address
Source Median Name Clearance Rate Source Contact Name
Source Median Address Clearance Rate Source Contact Number
Source Median Contact Name
Source Median Contact Number
17
4. OLAP Query
Which of our agents has sold the most properties in the
last quarter?
Which business process ?
Property Sales
Which fact(s) ?
Property Sales Fact
Which dimension(s) ?
Agent Dimension, Date Dimension
Which attribute(s) ?
In Property Sales Fact (); In Agent Dimension (); In Date
Dimension ()

18
2. Design Data Marts Property Sales
Property Sales Fact Date Dimension

Property Dimension Property Key (FK) Date Key (PK)


Date Key (FK) Date
Property Key (PK) Vendor Key (FK) Full Date Description
Buyer Key (FK) Day of Week
Property Street Add (FK) Day Number in Calendar Month
Agent Key
Property Suburb (FK) Day Number in Calendar Year
Property Key Day Number in Fiscal Month
Property Zone (FK)
Location Key Day Number in Fiscal Year
Property State
Calendar Month Name
Property Postcode Dollar Price Sold
Calendar Month Number in Year
Property Type Desc Dollar Reserve Price Calendar Year
Number of Bedrooms Fiscal Week Number in Year
Number of Bathrooms Fiscal Month
Location Dimension Fiscal Month Number in Year
Size of Garage
Land Size Fiscal Year-Month
Fiscal Quarter
Central Heating (yes/no)
Fiscal Year-Quarter
Aspect Facing ProperType Dimension
Fiscal Year

Vendor Dimension
Buyer Dimension Agent Dimension
Vendor Key (PK)
Vendor First Name Buyer Key (PK) Agent Key (PK)
Vendor Last Name Buyer First Name Agent First Name
Vendor Street Add Buyer Last Name Agent Last Name
Vendor Suburb Buyer Street Add Agent Street Add
Vendor Postcode Buyer Suburb Agent Suburb
Vendor Contact Number Buyer Postcode Agent Postcode
Vendor Email Add Buyer Contact Number Agent Contact Number
Buyer Email Add Agent Email Add 19
4. OLAP Query
How many of our prospective buyers do we have suitable
properties for? Is their a particular set of preferences
that we are having difficulty meeting?
Which business process ?
Alert/Appointment Services
Which fact(s) ?
Alert/Appointment Fact
Which dimension(s) ?
Prospective Buyer Dimension, Property Dimension
Which attribute(s) ?
In Alert/Appointment Fact (); In Prospective Buyer Dimension ();
In Property Dimension ()

20
2. Design Data Marts Alert/Appointment
Prospective Buyer Dimension
Prospective Buyer Key (PK)
Property Dimension
Alert/Appointment Fact Prospective Buyer First Name
Prospective Buyer Last Name
Property Key (PK) Prospective Buyer Key (FK) Prospective Buyer Street Add
Attributes as per Property Key (FK) Prospective Buyer Suburb
Property Dimension in Agent Key (FK) Prospective Buyer Postcode
Property Sales Data Alert Date Key Prospective Buyer Contact Phone
(FK)
Prospective Buyer Email Add
Mart Alert TimeofDay (FK) Preferred Property Type Desc
Appointment Date Key (FK) Preferred Suburb
Agent Dimension Appointment TimeofDay (FK) Minimum Number of Bedrooms
(PK) Rating Maximum Number of Bedrooms
Agent Key Preferred Number of Bathrooms
Number of Cars Garage
Attributes as per Agent Alert Date Dimension Preferred Land Size
Dimension in Property Central Heating (yes/no)
Sales Data Mart Alert Date Key (PK) Aspect Facing
Minimum Price
Attributes as per Time Maximum Price
Appoint. Date Dimension Dimension in Property
Sales Data Mart
Appointment Date Key (PK) Alert TimeofDay Dimension
Attributes as per Time Alert Time Key (PK)
Dimension in Property Appoint. TimeofDay Dimension Time
Sales Data Mart Appoint TimeofDay Key (PK) Hours
Time Minutes
Hours AM/PM indicator
Minutes
AM/PM indicator
21
Example of Design Decision

Property Sales Business Process:


Combination of the attributes following attributes in
Property type Dimension & preference property
Number of Bedrooms, Number of Bathrooms, Size of Garage,
Land Size, Central Heating, Aspect Facing

Preference Number of Number of Size of Land Central Aspect


Key Bedrooms Bathrooms Garage Size Heating Facing

1 1 1 1 <100 Y East

2 1 1 1 <100 Y North

3 1 1 1 <100 Y South

4 1 1 1 <100 Y West

Mini dimension?

22
Example of Design Decision
Alert/Appointment Business Process:
If you want to know customers who get alerts but
do not make appointment
Factless Fact Table

Alert/Appointment Fact Alert Factless Fact


Prospective Buyer Key (FK) Prospective Buyer Key (FK)
Property Key (FK) Property Key (FK)
Agent Key (FK) Agent Key (FK)
Alert Date Key (FK) Alert Date Key (FK)
Alert TimeofDay (FK) Alert TimeofDay (FK)
Appointment Date Key (FK) Appointment Date Key (FK)
Appointment TimeofDay(FK) Appointment TimeofDay(FK)
Rating Rating

23
Example of Design Decision

Market Analysis Business Process:


Repetitive attributes in Location Dimension:
Suburb Population, Suburb Map, Adjacent Suburbs, Zone,
State

Location Dimension

Location Key (PK)


Location Street Location Dimension Suburb Dimension
Location Suburb
Suburb Population Location Key (PK) Location Suburb Key (PK)
Suburb Map Location Street Location Suburb
Adjacent Suburbs Location Suburb Key (FK) Suburb Population
Zone Suburb Map
State Adjacent Suburbs
Zone
Outrigger or mini dimension table? State

24
25

Next lecture
Extract Transform Load (ETL)
34 subsystems

Anda mungkin juga menyukai