Dimensional Modeling Class
Dimensional Modeling Class
OU Babysitter Club
Promoting Dimensions
The treasurer wants a data warehouse for this. He would like to be able to
determine how much each customer was billed by week, month or year. How
much each employee earned, also summed by time periods. He is interested in
how much work is done on weekends, holidays or other special days. Develop a
data warehouse to provide this information.
CLUB SITTER
ClubName (pk) Enum (pk)
Contact Phone
ContactPhone Address
JOB
CUSTOMER Jobnum (pk)
CustNum (pk) Date
Name StartTime
Address EndTime
Phone Amount
2. DPMA Bookstore
Promoting Dimensions
The DPMA Club at XU operates a small bookstore for professional books. The
club orders a selection of books for display and records them in a catalog. When
members order a book, they pay for it and their name and the books they order
are added to the order list. When the book arrives the member is notified to pick
up the book. The Entity-Relationship diagram for this problem is below.
The club wants to track member activity including amount spent, cost of books,
time for delivery, etc. Draw a dimensional model for this problem.
The State of Oklahoma has a problem keeping up with uninsured motorists. The
problem is that motorists can register their cars and show proof of insurance at
that time but drop the insurance as soon as the registration is issued. The IT
task force proposes to solve this problem by tracking vehicles and insurance
policies issued in the state. The system should track insurance agents by ID
number with the name, address, phone, and insurance companies from which
they provide insurance. Each policy an agent issues will be tracked for vehicle
ID number (VIN), agency, insurance provider, start date and stop date of the
policy coverage. The system will identify vehicles which have no current
coverage and notify the owner by mail that this coverage must be renewed. The
department of motor vehicles will monitor the list of uncovered vehicles and print
weekly reports for enforcement use.
OWNER
AGENT
COMPANY VEHICLE
POLICY
4. ABC Lawn Mowing
Aggregate Fact Tables
ABC Lawn Mowing service needs a data warehouse system to plan its
operations. The service has contracts with clients. The system needs to keep
track of name, billing address and phone number for each client. The contracts
indicate property address, price and special instructions. The service has
services like mowing, clipping removal, shrub trimming, or fertilization. Each one
has a code, name, list cost, standard time and detailed instructions. The service
has several crews. Each crew has 2 to 4 employees, one of whom is crew chief.
Crew one may do contracts 1, 5 and 10 on the week of June 5, and 2, 5 and 11
on the week of June 12.
The company is interested in improving its sales effectiveness. Design the data
warehouse.
Contract
Client ContractID Property
ClientID ClientID PropertyID
Name Address Property Name
Address Price Address
Phone Instructions Price
Discount Instructions
Engagement
EngagementNumber
Date
ContractID
CrewID
PropertyID
Employee
Chief EmployeeID
Service Crew
ServiceCode CrewID CrewID
Description CrewChiefID Name
StandardEffort Address
ListPrice BillingRate
5. OU Wholesale
member
PLAYER TEAM
captain
home
visit
LINE
MATCH
7. DG Clothing
DG Inc. is a clothing manufacturer who wants a system to track inventory and
send bills. For each Stock Keeping Unit (SKU) item in inventory, DG needs size,
item name description and catalog price. DG also prints logos and designs on
the items and has an inventory of designs. DG keeps track of design name,
description and owner (if the design is proprietary). Each order includes
customer name, billing address, contact person and contact person phone. Each
item on the order requires both item and design specification, quantity ordered
and catalog price. DG sells to wholesale as well as retail customers. For retail
customers they need name, billing address and credit limit. For wholesale
customers DG keeps track of company name, address, purchasing agent, and
discount rate which describes the discount off of catalog price for that customer.
DG sends a statement with each order and needs to track billing statements and
payments.
8. OKC Orchestra.
Generating aggregation tables
Opening_Date
Conductor_ID Conductor_Name
CONCERT
SEASON
CONDUCTOR
Schedules
Concert_Number
Conducts
CONCERT Concert_Date
Date_Last_
performed
Composer_Name
SOLOIST Performs Includes
Composition_ID
Composition_
Name
Soloist_ID Soloist_Name
COMPOSITION Movement_ID
Movement_ Movement_
Number Name
9. SALES Delivery System
Generating Higher level Fact Tables
Icolor Dqty
Sqty Itype Dnum
Iname
Snum
SALE Consists ITEM DELIVERY
of
Made by
Manages Boss of
Spnum
Consumer Cards provides affiliate credit cards for Universities. Graduates or other
people who would like to support a particular university get a credit card with the
university logo on it. Customers can have one or more cards at a time. The card
company totals the amount charged on each card each month and pays the specified
University fund a percent of that amount determined by the rate negotiated. Consumer
Cards wants a data warehouse to track the results of this process over time, including
customer, the state where the customer lived at the time the charge was credited and the
fund credited at the time. Design this data warehouse.
a.) What is the grain of this mart? (Describe what each record means.)
b.) Customer John Smith lived in Oklahoma in 1999, moved to Arkansas in 2000 and
moved to Texas in 2002. How will this be reflected in the database? (What will records
look like?)
MEET RUNNER-MEET
RunnerID RUNNER
MeetID
MeetID RunnerID
MeetName
RaceDate Name
RunnerTime BirthDate
EVENT RunnerFinish e-mail
EventID
a) What is the grain of the data mart? (Describe what each record represents.)
The Sooner Engine shop remanufactures automobile engines. It takes old engines, repairs them
and sells them as recondition engines when they are done. Mr. Boren, VP of manufacturing
wants a data warehouse to help manage processing. He showed you a report that he requests
every day.
The report above is completed daily. Mr. Boren also creates similar reports on a weekly, monthly
and annual basis to track the work of his shop.
Create a data warehouse to support this reporting requirement. Add natural additional facts and
attributes based on your own judgment and experience.
Create a data warehouse to support this reporting requirement. Add additional facts and attributes
based on your own judgment and experience.
The Price Legal Defense Association needs to keep track of the certifications of its
lawyers. There are a number of certification tests that a member must take over time.
The tests are described by a Bar Association ID, Description and number of points credit
they are worth. Each lawyer and legal aid professional must pass (pass = 60%) 15 points
of professional testing a year. A lawyer may take the same course several times, but can
count a passing score on it only once per year. It is important that the PLDA keep track
of which each member took, the score they made, and when they took the test. Each
lawyer is identified with a Bar Number, Name, telephone, e-mail and school they
graduated from.
Tests are written or oral exams given by a certified tester. The system must keep track of
testers (Name, phone, address) and the tests they are qualified to administer. Testers can
each administer several different tests and there are several testers for each different test.
The company also wants to keep track of who administered each test to each of its
lawyers.
QUALIFIED
TESTER
BarID
TesterID
Descr
TESTER
TesterID
Name
Phone