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?
11 years ago
100
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- sql_codes.txt
Bids(1)
other Questions(10)
- Strategic Management 615- 2 essay questions
- 2/9+ 3/6
- Sandra chooses a dog for a birthday present without looking. What is the probability it will be a shih tzu or...
- Acct 212 chapter 18
- KIWANDA QUESTION
- How is the gerund used in the sentence? All units will remain here for processing.
- Physics problem
- Design a program for a health and wellness program for a multi-culturally and economically diverse population in a community-based...
- Advanced Design Technique (Multidisciplinary Optimization [Engineering])
- A suffix that means "without or lacking" and changes words