
ASSIGNMENT 4
Deepmalika Das/T11/21
AIM:
Design a DWH Schema for recording grades of students enrolled in various courses of
various semesters for a university. Design Star schema, Snowflake schema and
Factless Fact table for recording their attendance.
THEORY:
A data warehouse is a centralized system used to store and organize large amounts of
data for analysis and reporting. It supports decision-making by separating analytical
processing from daily transactions. Data in a warehouse is structured using tables, such
as fact and dimension tables, to make querying efficient and meaningful.
Star Schema
Star Schema is a commonly used multidimensional model in data warehousing. It
consists of a central fact table connected directly to multiple dimension tables, forming a
star-like structure. The fact table stores quantitative data, while dimension tables store
descriptive attributes. This schema uses fewer foreign-key joins, making queries simpler
and faster. Due to its simple design and high query performance, star schema is widely
used for reporting and analytical
purposes.
Snowflake Schema
Snowflake Schema is a multidimensional model that is an extension of the star schema.
In this schema, dimension tables are further normalized into subdimension tables,
creating a snowflakeshaped structure. It includes fact tables, dimension tables, and
sub-dimension tables. While this design reduces data redundancy and saves storage
space, it requires more joins, which can make queries more complex and slower
compared to star schema.
Fact Table
A fact table is the central table in a data warehouse that stores measurable and
quantitative business data. It contains numerical values such as sales amount, quantity
sold, or profit, along with foreign keys that reference dimension tables. Fact tables
support calculations, trend analysis, and performance measurement across different
dimensions like time, product, or location.