In this assignment, we are building a data warehouse for an online brokerage company. The company makes money by charging commissions when customers buy and sell stocks. We are planning to have a...

1 answer below »

In this assignment, we are building a data warehouse for an online brokerage company. The company makes money by charging commissions when customers buy and sell stocks. We are planning to have a Trades fact table with the grain of one row per stock trade. We will use the following dimensions: Date, Customer, Account, Security (i.e. which stock was traded), and TradeType.

The company’s data analysts have told us that they have developed two customer scoring techniques that are used extensively in their analyses.

•    Each customer is placed into one of nine Customer Activity Segments based on their frequency of transactions, average transaction size, and regency of transactions.
•    Each customer is assigned a Customer Profitability Score based on the profit earned as a result of that customer’s trades. The score can be either 1,2,3,4, or 5, with 5 being the most profitable.

These two scores are frequently used as filters or grouping attributes in queries. For example:
•    How many trades were placed in July by customers in each customer activity segment?
•    What was the total commission earned in each quarter of 2003 on trades of IBM stock by customers with a profitability score of 4 or 5? 
There are a total of 100,000 customers, and scores are recalculated every three months. The activity level or profitability level of some customers’ changes over time, and users are very interested in understanding how and why this occurs.
Task 1: Data Warehouse Design
Design a data warehouse for the above mention scenario. Implement your data warehouse with SQL Developer.

Prepare a report of your data warehouse design and demonstrate your design to your tutor.


Task 2: OLAP Queries
Based on your design, write down the queries for the following problem:
•    How many trades were placed in July by customer “John Alan”?







Answered 947 days AfterOct 07, 2019

Answer To: In this assignment, we are building a data warehouse for an online brokerage company. The company...

Bikram answered on May 11 2022
114 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here