Question
Q1: from data warehouse (star schema) write sql quary: DW_Time (Time_id, Month, Year) DW_Customer_Demographics (Dem_id, age_group, min_age, max_age,Gender) DW_Facts (Time_id, Dem_id, Total_sales_amount, No_of_books_sold) Design 5-6
Q1: from data warehouse (star schema) write sql quary:
DW_Time (Time_id, Month, Year)
DW_Customer_Demographics (Dem_id, age_group, min_age, max_age,Gender)
DW_Facts (Time_id, Dem_id, Total_sales_amount, No_of_books_sold)
Design 5-6 age groups for the customers. All customers are at least 18 years old.
Add test data for 2-3 month within 2017
Add test data for 5-6 age groups for both genders
Q2:
if we have a table and what is the sql quary :
Add two computer books to the database. Add yourself as a customer and add an order for the above two books.
Calculate the total revenue for each month and year (try ROLLUP and CUBE functions).
Add DOB and Gender to the CUSTOMERS table and add some data.
Calculate the age of the customer as of the order date.
Calculate the age group for the customer.
Calculate the revenue and no of books per customer group, per month and year.
Design a stage-table for the DW upload.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started