Design a data warehouse purchases using a star model

Assignment Help Database Management System
Reference no: EM131906643

Assignment -

Purpose: To analyze an existing database design. To design a data warehouse and perform initial upload of data.

Part 1 - Use the following script to create tables on the Oracle 11g server

CREATE TABLE customers (

customer_id INTEGER CONSTRAINT customers_pk PRIMARY KEY,

first_name VARCHAR2(10) NOT NULL,

last_name VARCHAR2(10) NOT NULL,

dob DATE,

phone VARCHAR2(12)

);

CREATE TABLE product_types (

product_type_id INTEGER CONSTRAINT product_types_pk PRIMARY KEY,

name VARCHAR2(10) NOT NULL

);

CREATE TABLE products (

product_id INTEGER CONSTRAINT products_pk PRIMARY KEY,

product_type_id INTEGER

CONSTRAINT products_fk_product_types

REFERENCES product_types(product_type_id),

name VARCHAR2(30) NOT NULL,

description VARCHAR2(50),

price NUMBER(5, 2)

);

CREATE TABLE purchases (

Purchase_id INTEGER PRIMARY KEY,

product_id INTEGER

CONSTRAINT purchases_fk_products

REFERENCES products(product_id),

customer_id INTEGER

CONSTRAINT purchases_fk_customers

REFERENCES customers(customer_id),

quantity INTEGER NOT NULL,

purchase_date DATE NOT NULL

);

1. Use PowerDesigner to reverse engineer the script, and create a CDM (ERD) for the above database.

2. Prepare a physical model, create DDL script, and create tables. If necessary, introduce your own changes to the script. For example: create sequences, add necessary indexes. Create the final DDL Script.

3. Add data to test the next step. Add purchases for 2-3 month within 2 (or more) years.

4. Prepare SQL queries to list he following data:

a. For each product, a total # of products sold in all years and each month within the year. Use ROLLUP.

b. For each product, a total $ amount for products sold in all years and each month within the year. Use ROLLUP.

Part 2 - Design a data warehouse PURCHASES using a star model (or snowflake). Include facts related to number of products purchased and total amount of $ for products purchased. Use the following dimensions: time (month, year), product, customer (age group). Create a conceptual and physical model for the data warehouse using PowerDesigner (please prefix all tables with DW1). Print out your physical model. Generate the schema for Oracle and run the script to create appropriate tables. Load the data into the data warehouse using tables from part 1.

Prepare the following OLAP queries:

1. What was the total number of products sold in each year?

2. What was the month and year of the highest purchases in $?

3. What was the total number of products ordered by customers older than 65?

Part 3 - 1. Create an arff file for the following Shopping basket (you may change your data)

@relation SHOPPING

@attribute pencil {0,1}

@attribute magazine {0,1}

@attribute banana {0,1}

@attribute paper {0,1}

@attribute milk {0,1}

@attribute apple {0,1}

@attribute pear {0,1}

@data

0,0,1,0,1,1,1

0,0,1,0,1,1,0

1,1,0,1,0,0,0

1,0,1,1,0,0,0

1,0,0,1,0,0,0

1,0,0,1,1,0,1

0,1,1,0,1,1,0

1,1,1,0,0,0,1

1,0,1,1,1,1,0

0,0,1,0,1,1,1

Ru the associate rules Apriori algorithm and report your results:

a. What is minimum support reported? (****)

b. Minimum confidence? (****)

c. Best rules found? (****)

Attachment:- Assignment File.rar

Reference no: EM131906643

Questions Cloud

Entering into three-year remodeling and expansion project : Home Place? Hotels, Inc., is entering into a? 3-year remodeling and expansion project.
Determine the percent by mass of carbon and hydrogen : Determine the percent by mass of carbon and hydrogen in the sample. Assume that any remaining element is oxygen and calculate the empirical formula.
Discuss at least one external factor for each country : Present at least one internal factor in each country that may be leading to its less preferred global status. Discuss at least one external factor.
What is aftertax cash flow from the sale of this asset : what is the aftertax cash flow from the sale of this asset (SVNOT)?
Design a data warehouse purchases using a star model : Design a data warehouse PURCHASES using a star model (or snowflake). Include facts related to number of products purchased
Strong or weak yen would benefit japanese automakers : Briefly discuss whether strong or weak yen would benefit Japanese automakers.
How has apple been able to implement the strategy : Suggestions for marketers to prolong their influence over the target market? How has Apple been able to implement this strategy?
The failure to get gross marketing contribution : What was the variance because of the failure to get the gross marketing contribution?
About business risk and optimal capital structure of firm : During their conversations about the business risk and the optimal capital structure of a firm,

Reviews

len1906643

3/19/2018 5:39:49 AM

Hand in: Create a pdf with your answers and upload to Blackboard assignments -1. Conceptual design (CDM) for the database (from reversed engineered script). 2. DDL script to create transactional database for PURCHASES. 3. SQL queries and results. 4. Conceptual design (CDM) for data warehouse PURCHASES. 5. List of the DW1_ tables from the USER_OBJECTS with table names, creation date and time in ISO standard. 6. SQL queries to upload the data to the PURCHASES warehouse. 7. SQL queries and results for the OLAP questions. 8. Results from Weka and answers to Part 3.

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd