ADSL Assignment No. 6
ADSL Assignment No. 6
(CSE) – II [ 2024-25 ]
Assignment No. 6
Specifications :
The location of the stores is also recorded. Each store is located in one city, and there
can be many stores in the city. Each city has one headquarter for coordinating all of
its stores. The enterprise’s goal is to meet all of the customer’s requirements from
stores located in the customer’s city. If the requirement cannot be met, the company
will turn to the other cities where the item can be found if there is any.
Some processing information is important for the enterprise. For example, the total
quantity of item stored in each city. After every time an item is taken, the company
needs to know the total quantities of the item in all the stores in a city.
Headquarter Database:
Relation Customer (Customer_id, Customer_name, City_id, First_order_date)
Relation Walk-in_customers (*Customer_id, tourism_guide, Time)
Relation Mail_order_customers (*Customer_id, post_address, Time)
Sales Databases:
Relation Headqarters (City_id, City_name, Headquarter_addr, State, Time)
Relation Stores (Store_id, *City_id, Phone, Time)
Relation Items (Item_id, Description, Size, Weight, Unit_price, Time)
Relation Stored_items (*Store_id, *Item_id, Qantity_held, Time)
Relation Order (Order_no, Order_date, Customer_id)
Relation Ordered_item (*Order_no, *Item_id, Quantity_ordered, Ordered_price,
Time)
Where underlined are primary key and “*” prefixed are foreign keys.
Business requirements:
In order to meet users’ demand, the data warehouse system extracts data from the
existing two database into a data warehouse, and provides online analytical processing
with roll up, drill down, slice and dice features according to users selections based on
dimension tables to meet the user requirements.
Build data warehouse / OLAP which will answer the following queries :
1. Find all the stores along with city, state, phone, description, size, weight and
unit price that hold a particular item of stock.
2. Find all the orders along with customer name and order date that can be
fulfilled by a given store.
3. Find all stores along with city name and phone that hold items ordered by
given customer.
4. Find the headquarter address along with city and state of all stores that hold
stocks of an item above a particular level.
5. For each customer order, show the items ordered along with description, store
id and city name and the stores that hold the items.
6. Find the city and the state in which a given customer lives.
7. Find the stock level of a particular item in all stores in a particular city.
8. Find the items, quantity ordered, customer, store and city of an order.
9. Find the walk in customers, mail order customers and dual customers (both
walk-in and mail order).
Deadline : 16/02/2025
Dr. B. F. Momin
Course Coordinator