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

  Describe product characteristics and deliverables

Develop a scope statement for the project and describe product characteristics and deliverables.

  Identify and explain the rationale for the data model.

Select a data model your team would use to build a new EHR for your facility

  Modify the database by adding an additional column

Modify the database by adding an additional column ("Deleted_Date") to those tables that represent entities that could contain data which can be deleted and justify your rationale in a short paragraph.

  Describe entities and attributes that the website must track

Describe entities and attributes that the website must track.

  Explain knowledge discovery database and give its components

Explain the knowledge discovery database and give its components. What are the market drivers of big data,give its challenges and advantages.

  Describe how you created the conceptual and process

Describe how you created the conceptual and process view for all four (4) diagrams. In the description, be sure to provide a justification for each key decision in the design.

  Update the initial database to include six additional tables

Update the initial database to include six additional tables as shown in the first diagram. Submit a consolidated Word document with all screenshot and the DDL.

  What % of the survey participants are in each department

Be sure to include other ways that probability is used in business. (Feel free to use the Business Source Premier Database in the Library as a resource to research.)

  Synchronization between the database and the transaction log

A point of synchronization between the database and the transaction log is called a(n): An ACID transaction is one that is:

  Create a plan of the necessary activities to databasse

Create a plan of the necessary activities that would be required to implement a valid database design process

  Delete movies collection using aggregation pipeline approach

Delete movies collection and re-create it using the aggregation pipeline approach - Add attribute gender: male/female to each document in the actors collection

  Describes the entire process required for a company

Using research of the SEC, XBRL, and other related websites you discover, write a 2-3 page report that describes the entire process required for a company

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