0% found this document useful (0 votes)
67 views6 pages

Dmbi Assignment 2: Q.1. Explain STAR Schema. Ans-1

Star schema is the simplest data warehouse schema, with one or more fact tables referencing any number of dimension tables. It resembles a star shape. Snowflake schema is a variant where dimension tables are normalized into multiple related tables. Fact constellation schema contains multiple fact tables sharing some common dimension tables, resembling a collection of star schemas. OLAP operations on multidimensional data include roll-up (aggregation), drill-down (more detailed data), slice (selecting a dimension), dice (selecting multiple dimensions), and pivot (rotating data axes).

Uploaded by

Kanishk Test
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views6 pages

Dmbi Assignment 2: Q.1. Explain STAR Schema. Ans-1

Star schema is the simplest data warehouse schema, with one or more fact tables referencing any number of dimension tables. It resembles a star shape. Snowflake schema is a variant where dimension tables are normalized into multiple related tables. Fact constellation schema contains multiple fact tables sharing some common dimension tables, resembling a collection of star schemas. OLAP operations on multidimensional data include roll-up (aggregation), drill-down (more detailed data), slice (selecting a dimension), dice (selecting multiple dimensions), and pivot (rotating data axes).

Uploaded by

Kanishk Test
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Kanishk Gupta 417 CSE-7B

DMBI ASSIGNMENT 2
Q.1. Explain STAR schema.

Ans-1

Star schema is the fundamental schema among the data mart schema and it is simplest. This
schema is widely used to develop or build a data warehouse and dimensional data marts. It
includes one or more fact tables indexing any number of dimensional tables. The star schema
is a necessary case of the snowflake schema. It is also efficient for handling basic queries.
It is said to be star as its physical model resembles to the star shape having a fact table at its
center and the dimension tables at its peripheral representing the star’s points. Below is an
example to demonstrate the Star Schema:

In the above demonstration, SALES is a fact table having attributes i.e. (Product ID, Order ID,
Customer ID, Employer ID, Total, Quantity, Discount) which references to the dimension
tables. Employee dimension table contains the attributes: Emp ID, Emp Name, Title,
Department and Region. Product dimension table contains the attributes: Product ID, Product
Name, Product Category, Unit Price. Customer dimension table contains the attributes:
Customer ID, Customer Name, Address, City, Zip. Time dimension table contains the
attributes: Order ID, Order Date, Year, Quarter, Month.
Model of Star Schema –
In Star Schema, Business process data, that holds the quantitative data about a business is
distributed in fact tables, and dimensions which are descriptive characteristics related to fact
data. Sales price, sale quantity, distant, speed, weight, and weight measurements are few
examples of fact data in star schema.
Often, A Star Schema having multiple dimensions is termed as Centipede Schema. It is easy to
handle a star schema which have dimensions of few attributes.

Q.2. Explain Snowflake schema

Ans-2

The snowflake schema is a variant of the star schema. Here, the centralized fact table is
connected to multiple dimensions. In the snowflake schema, dimension are present in a
normalized from in multiple related tables. The snowflake structure materialized when the
dimensions of a star schema are detailed and highly structured, having several levels of
relationship, and the child tables have multiple parent table. The snowflake effect affects only
the dimension tables and does not affect the fact tables.

The Employee dimension table now contains the attributes: EmployeeID, EmployeeName,
DepartmentID, Region, Territory. The DepartmentID attribute links with Employee table with
the Department dimension table. The Department dimension is used to provide detail about
each department, such as Name and Location of the department. The Customer dimension
table now contains the attributes: CustomerID, CustomerName, Address, CityID. The CityID
attributes links the Customer dimension table with the City dimension table.
The City dimension table has details about each city such as CityName, Zipcode, State and
Country.
The main difference between star schema and snowflake schema is that the dimension table
of the snowflake schema are maintained in normalized form to reduce redundancy. The
advantage here is that such table(normalized) are easy to maintain and save storage space.
However, it also means that more joins will be needed to execute query. This will adversely
impact system performance.

Q.3. Explain fact constellation schema

Ans-3

Fact Constellation is a schema for representing multidimensional model. It is a collection of


multiple fact tables having some common dimension tables. It can be viewed as a collection of
several star schemas and hence, also known as Galaxy schema. It is one of the widely used
schema for Data warehouse designing and it is much more complex than star and snowflake
schema. For complex systems, we require fact constellations.
Here, the pink coloured Dimension tables are the common ones among both the star
schemas. Green coloured fact tables are the fact tables of their respective star schemas.

Q.4. Define Drill-down and roll-up, slice-and-dice , pivot or rotation.

Ans-4

OLAP Operations

Since OLAP servers are based on multidimensional view of data, we will discuss OLAP
operations in multidimensional data.

Here is the list of OLAP operations −

 Roll-up

 Drill-down

 Slice and dice

 Pivot (rotate)

Roll-up

Roll-up performs aggregation on a data cube in any of the following ways −

 By climbing up a concept hierarchy for a dimension

 By dimension reduction

The following diagram illustrates how roll-up works.

 Roll-up is performed by climbing up a concept hierarchy for the dimension location.

 Initially the concept hierarchy was "street < city < province < country".

 On rolling up, the data is aggregated by ascending the location hierarchy from the
level of city to the level of country.

 The data is grouped into cities rather than countries.

 When roll-up is performed, one or more dimensions from the data cube are removed.
Drill-down

Drill-down is the reverse operation of roll-up. It is performed by either of the following ways

 By stepping down a concept hierarchy for a dimension

 By introducing a new dimension.

The following diagram illustrates how drill-down works −

 Drill-down is performed by stepping down a concept hierarchy for the dimension


time.

 Initially the concept hierarchy was "day < month < quarter < year."

 On drilling down, the time dimension is descended from the level of quarter to the
level of month.

 When drill-down is performed, one or more dimensions from the data cube are
added.

 It navigates the data from less detailed data to highly detailed data.

Slice

The slice operation selects one particular dimension from a given cube and provides a new
sub-cube. Consider the following diagram that shows how slice works.

 Here Slice is performed for the dimension "time" using the criterion time = "Q1".

 It will form a new sub-cube by selecting one or more dimensions.

Dice

Dice selects two or more dimensions from a given cube and provides a new sub-cube.
Consider the following diagram that shows the dice operation.
The dice operation on the cube based on the following selection criteria involves three
dimensions.

 (location = "Toronto" or "Vancouver")

 (time = "Q1" or "Q2")

 (item =" Mobile" or "Modem")

Pivot

The pivot operation is also known as rotation. It rotates the data axes in view in order to
provide an alternative presentation of data. Consider the following diagram that shows the
pivot operation.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy