Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

WEEKLY ASSIGNMENT 1

WHY IS THE ENTITY- RELATION MODELING TECHNIQUE NOT SUITABLE


FOR THE DATA
WAREHOUSE? HOW IS DIAMENTIONAL MODELING DIFFERENT?
The entity-relationship modeling technique is not suitable for data warehouses because
the dimensional modeling technique is appropriate.
Data Dimensional Modelling (DDM) is a technique that uses Dimensions and Facts to store
the data in a Data Warehouse efficiently, It is different it stores the data in the most optimised
way to ensure there is no redundancy of the data and to improve performance.

WHAT ARE THE ADVANTAGES OF STAR SCHEMA?


Easy for Users to Understand
The STAR schema reflects exactly how the users think and need data for querying and analysis.
They think in terms of significant business metrics. The fact table contains the metrics. The users
think in terms of business dimensions for analyzing the metrics. The dimension tables contain
the attributes along which the users normally query and analyze.
Optimizes Navigation
The relationships are used to go from one table to another for obtaining the information you
are looking for. The relationships provide the ability to navigate through the database.it
optimizes the navigation through the database. Even when you are looking for a query result
that is seemingly complex, the navigation is still simple and straightforward.
Most Suitable for Query Processing
Irrespective of the number of dimensions that participate in the query and irrespective of the
complexity of the query, every query is simply executed first by selecting rows from the
dimension tables using the filters based on the query parameters and then finding the
corresponding fact table rows. This is possible because of the simple and straightforward join
paths and because of the very arrangement of the STAR schema.

DESIGN A STAR SCHEMA OF VIDEO RENTAL. IN THE SHEMA, MAKE SURE


OF THE FOLLOWING
a) The metrics of fact being analysed.
b) The business diamensions used for analysis.
c) The hierarchy availability within each diamention for drill down and roll up
d) The primary and foreign keys
WEEKLY ASSIGNMENT 1

RENTAL FACTS

Customer
key

CUSTOMER Time key

Customer Item key


key TIME
Rental fee
Cst.name Time key
Cst.addres Date
ITEM
Cst.phne Weeks
Item key
Cst.ID Month
Item no.
Year
Release

Type item

Age group

What is a fact less table? Design a simple star schema with a fact less table to truck
patients in a hospital by diagnostic procedures and time.
A fact less fact table is a fact tables which really do not need to contain facts or
measurements. It is an intersection of dimensions and contains nothing but dimension table’s
key.
DESIGN OF A STAR SCHEMA

Patient facts

Diagnostic key

Time key
diagnostic procedure time
Patient_name
Diagnostic key Patient_age
Covid_19 test Patient_location
River function Patent past results
WEEKLY ASSIGNMENT 1

Time key

Date

Month

Year

Current time

You might also like