Pl and sql functions

Assignment Help Database Management System
Reference no: EM13819249

PL/SQL functions, star schema, SQL queries

Starting from the database used in Project 1 (see the slightly changed schema from the original version used in P1, defined in the attached DDL file), a data warehouse star schema with the following characteristics will be defined:

Dimension tables:

Date

Product

Customer

Fact table:

Sales
For this final project, perform the following steps:

Create the tables defined above in a star schema. Add the necessary columns in each table to facilitate the implementation of the queries defined below. Only the four tables listed above are allowed in that star schema

Write PL/SQL code (anonymous blocks and/or subprograms) to populate the warehouse schema with data from the normalized database provided in the attached DDL script

Write SQL code to perform the following queries:
What customer age group spent the most money in the last year? An age group is defined as a ten years interval, such as: 11 - 20, 21 - 30, etc

In what zip codes did the highest number of sales (number of items) occur during April 2015?

What day of the week did they do most business (by value of sales) in the last year?

What quarter is the worst (by value of sales) for each product category, using the whole set of historical data available in the warehouse?

What was the best sales month for each product in the last year?

Reference no: EM13819249

Questions Cloud

What could happen to greece and its economy : Each day there is speculation in the news about what could happen to Greece and its economy. Your assignment is to research the Greek crisis and draw your own conclusions on what the outcome will be for survival. Will they exit the Euro?
Financial system and financial systems : During the summer and fall of 2008, the U.S. financial system and financial systems around the world appeared to be on the verge of collailpse.
How applying a mixed-source methodology enhances testing : Elabote on how applying a mixed-source methodology overcomes the disadvantages of a single-source methodology. Elaborate on how applying a mixed-source methodology enhances testing efficiency.
Market-negotiated transactions : Nobel laureate Ronald Coase reasoned that when transaction costs were low, business people would form organizations to replace market-negotiated transactions.
Pl and sql functions : PL and SQL functions
Investments worksheet : Answer the following questions in at least 50 words each: 1. What are the main differences between a 401K and a Roth IRA?
How does divorce effect the minds of children : How does divorce effect the minds of children. Most people try to stay together for the children, if they don't and they divorce, what is the effect?
Identify its current plc stage : Identify its current PLC stage. Include at least two explanations of why it is in that stage. Include at least two recommendations for the product or service to advance to the next stage
Determine advantages of using traditional predictors : Determine three advantages and three disadvantages of using traditional predictors versus substantive assessment methods when selecting new employees.

Reviews

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