Professional Documents
Culture Documents
Case Study On Building Data Warehouse/Data Mart
Case Study On Building Data Warehouse/Data Mart
Practical No: 1
Class: TE COMPS B
Evaluation
Dimension Tables :
Fact Table :
HotelOccupancy
HotelID (FK)
RoomID (FK)
CustomerID (FK)
Date (FK)
No_of_occupied_roo
ms
No_of_vacant_rooms
Revenue
FK indicates Foreign Key Referencing the respective dimension tables.
Data warehouse Schema
Schema is a logical description of the entire database.
It includes the name and description of records of all record types including all associated
data-items and aggregates.
A database uses relational model, while a data warehouse uses Star, Snowflake, and Fact
Constellation schema.
Star schema:
It is called as STAR SCHEMA, when the center of the star can have one fact table and a
number of associated dimension tables.
It is known as star schema as its structure resembles a star.
The Star Schema data model is the simplest type of Data Warehouse schema.
It is also known as Star Join Schema and is optimized for querying large data sets.
Snowflake schema:
Snowflake Schema in data warehouse is a logical arrangement of tables in a
multidimensional database such that the ER diagram resembles a snowflake shape.
A Snowflake Schema is an extension of a Star Schema, and it adds additional
dimensions.
The dimension tables are normalized which splits data into additional tables.
Problem Statement:
The online food ordering system sets up a food menu online and customers can easily place the
order as per they like. Also, the online customers can easily track their orders. The management
maintains customer’s database, and improve food delivery service.
This system also provides a feedback system in which user can rate the food items. Also, the
proposed system can recommend hotels, food, based on the ratings given by the user, the hotel
staff will be informed for the improvements along with the quality. The payment can be made
online or cash or pay-on-delivery system. For more secured ordering separate accounts are
maintained for each user by providing them an ID and a password
Dimension Tables:
Country Country
PinCode PinCode
StarRating CustomerContact
Fact table:
OrderDetails
ProductId (FK)
RestaurantId (FK)
DeliveryPersonId (FK)
CustomerId (FK)
TotalAmount
PaymentType
Snowflake Schema: