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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!