Data Mining and Data Warehousing Notes
Data Mining and Data Warehousing Notes
MODULE – 1
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Q1) Explain/Define Data warehousing? Differentiate & Compare Operational Database System
(ODS) and Data Warehousing System (DWS).
Ans: A data warehouse refers to a data repository that is maintained separately from an
organization’s operational databases. Data warehouse systems allow for integration of a variety
of application systems. They support information processing by providing a solid platform of
consolidated historic data for analysis. According to William H. Inmon, “A data warehouse is a
subject-oriented, integrated, time-variant, and nonvolatile collection of data in support of
management’s decision making process”.
Q2) What is Operational Database systems/stores (ODS)? How does it differ from data
warehouse? Explain. Ans for Q1, Q2, and Q3:
Operational systems/stores (ODS) Data warehousing systems
(OLTP) (OLAP)
ODS are designed to support high-volume online DW systems are designed to support high-volume online
transaction processing (OLTP) with minimal back-end analytical processing (OLAP) and subsequent, often
reporting. elaborate report generation.
Operational systems are generally process- DW systems are generally subject-oriented, organized
oriented or process-driven, meaning that they are around business areas that the organization needs
focused on specific business processes or tasks. information about. Such subject areas are usually
populated with data from one or more operational
Example: Tasks include billing, registration, etc. systems.
Example: Revenue may be a subject area of a data
warehouse that incorporates data from operational
systems that contain student tuition data, alumni gift
data, financial aid data, etc.
Data within operational systems are generally updated Data within a data warehouse is generally non-volatile,
regularly according to need. meaning that new data may be added regularly, but once
loaded, the data is rarely changed, thus preserving an
ever-growing history of information.
In short, data within a data warehouse is generally read-
only.
ODS are generally optimized to perform fast inserts and DW systems are generally optimized to perform fast
updates of relatively small volumes of data. retrievals of relatively large volumes of data
ODS are generally application-specific, resulting in a DW systems are generally integrated at a layer above the
multitude of partially or non-integrated systems application layer, avoiding data redundancy problems.
and redundant data
Operational systems generally require a non-trivial level DW systems generally appeal to an end-user community
of computing skills amongst the end-user community. with a wide range of computing skills, from novice to
expert users.
It involves day-to-day processing. It involves historical processing of information.
OLTP systems are used by clerks, DBAs, or database OLAP systems are used by knowledge workers such as
professionals. executives, managers, and analysts.
It is used to run the business. It is used to analyze the business.
It is based on Entity Relationship Model. It is based on Star Schema, Snowflake Schema, and Fact
Constellation Schema.
It is application oriented. It focuses on Information out.
It provides primitive and highly detailed data. It provides summarized and consolidated data.
It provides detailed and flat relational view of data. It provides summarized and multidimensional view of
data.
The database size is from 100 MB to 100 GB. The database size is from 100GB to 100 TB.
It provides high performance. These are highly flexible.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Q3) Differentiate OLTP and OLAP OR Compare between OLTP and OLAP systems.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
3) Time-variant: Data are stored to provide information from an historic perspective (e.g.,
the past 5–10 years). Every key structure in the data warehouse contains, either implicitly
or explicitly, a time element.
4) Nonvolatile: A data warehouse is always a physically separate store of data transformed
from the application data found in the operational environment. Due to this separation, a
data warehouse does not require transaction processing, recovery, and concurrency
control mechanisms. It usually requires only two operations in data accessing: initial
loading of data and access of data.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
1) The bottom tier is a warehouse database server that is almost always a relational
database system. Back-end tools and utilities are used to feed data into the bottom tier
from operational databases or other external sources These tools and utilities perform
data extraction, cleaning, and transformation as well as load and refresh functions to
update the data warehouse The data are extracted using application program interfaces
known as gateways. A gateway is supported by the underlying DBMS and allows client
programs to generate SQL code to be executed at a server. Examples of gateways include
ODBC (Open Database Connection) and OLEDB (Object Linking and Embedding
Database) by Microsoft and JDBC (Java Database Connection). This tier also contains a
metadata repository, which stores information about the data warehouse and its contents.
2) The middle tier is an OLAP server that is typically implemented using either (1) a
relational OLAP(ROLAP) model (i.e., an extended relational DBMS that maps
operations on multidimensional data to standard relational operations); or (2) a
multidimensional OLAP (MOLAP) model (i.e., a special-purpose server that directly
implements multidimensional data and operations).
3) The top tier is a front-end client layer, which contains query and reporting tools,
analysis tools, and/or data mining tools (e.g., trend analysis, prediction, and so on).
2) Data mart: A data mart contains a subset of corporate-wide data that is of value to a specific
group of users. The scope is confined to specific selected subjects. For example, a marketing data
mart may confine its subjects to customer, item, and sales. The data contained in data marts tend
to be summarized. Data marts are usually implemented on low-cost departmental servers that are
Unix/Linux or Windows based. Depending on the source of data, data marts can be categorized
as independent or dependent. Independent data marts are sourced from data captured from one or
more operational systems or external information providers, or from data generated locally
within a particular department or geographic area. Dependent data marts are sourced directly
from enterprise data warehouses.
3) Virtual warehouse: A virtual warehouse is a set of views over operational databases. For
efficient query processing, only some of the possible summary views may be materialized. A
virtual warehouse is easy to build but requires excess capacity on operational database servers.
1) Data extraction, which typically gathers data from multiple, heterogeneous, and external sources.
2) Data cleaning, which detects errors in the data and rectifies them when possible.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
3) Data transformation, which converts data from legacy or host format to warehouse format.
4) Load, which sorts, summarizes, consolidates, computes views, checks integrity, and builds
indices and partitions.
5) Refresh, which propagates the updates from the data sources to the warehouse.
Metadata Repository:
Metadata are data about data. When used in a data warehouse, metadata are the data that
define warehouse objects. Metadata are created for the data names and definitions of the given
warehouse. Additional metadata are created and captured for time-stamping any extracted data,
the source of the extracted data, and missing fields that have been added by data cleaning or
integration processes.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
A simple 2-D data cube that is, in fact, a table or spreadsheet for sales data from
AllElectronics. In particular, we will look at the AllElectronics sales data for items sold per
quarter in the city of Vancouver.
To view the sales data with a third dimension. For instance, suppose we would like to view
the data according to time and item, as well as location, The 3-D data in the table are represented
as a series of 2-D tables. lllly we can think of a 4-D cube as being a series of 3-D cubes.
Base cuboid: The cuboid that holds the lowest level of summarization is called the base cuboid.
Ex: the 4-D cuboid in Figure, is the base cuboid for the given time, item, location, and supplier
dimensions.
Apex cuboid/ The 0-D cuboid: It holds the highest level of summarization. In Figure it is the
total sales, or dollars sold, summarized over all four dimensions. The apex cuboid is typically
denoted by all.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
1) Stars Schema:
The most common modeling paradigm is the star schema, in which the data warehouse
contains a large central table (fact table) containing the bulk of the data, with no
redundancy, and a set of smaller attendant tables (dimension tables), one for each
dimension. The schema graph resembles a starburst, with the dimension tables displayed
in a radial pattern around the central fact table.
The following fig shows the star schema module for the Sales of AllElectronics.
Sales are considered along four dimensions: time, item, branch, and location. The schema
contains a central fact table for sales that contains keys to each of the four dimensions,
alongwith two measures: dollars sold and units sold. To minimize the size of the fact
table, dimension identifiers (e.g., time key and item key) are system-generated identifiers.
each dimension is represented by only one table, and each table contains a set of
attributes.
Disadvantages: Some similar kind of Entries for attributes in the dimension table will
create redundancy among the attributes
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
2) Snowflakes Schema:
The snowflake schema is a variant of the star schema model, where some dimension tables are
normalized, thereby further splitting the data into additional tables. The resulting schema graph
forms a shape similar to a snowflake.
Advantages: The major difference between the snowflake and star schema models is that the
dimension tables of the snowflake model may be kept in normalized form to reduce
redundancies. Such a table is easy to maintain and saves storage space. However, this space
savings is negligible in comparison to the typical magnitude of the fact table. Furthermore, the
snowflake structure can reduce the effectiveness of browsing, since more joins will be needed to
execute a query. Consequently, the system performance may be adversely impacted. Hence,
although the snowflake schema reduces redundancy, it is not as popular as the star schema in
data warehouse design.
The main difference between the two schemas is in the definition of dimension tables. The
single dimension table for item in the star schema is normalized in the snowflake schema,
resulting in new item and supplier tables. For example, the item dimension table now contains
the attributes item key, item name, brand, type, and supplier key, where supplier key is linked to
the supplier dimension table, containing supplier key and supplier type information. Similarly,
the single dimension table for location in the star schema can be normalized into two new tables:
location and city. The city key in the new location table links to the city dimension. Notice that,
when desirable, further normalization can be performed on province or state and country in the
snowflake schema shown in above Figure.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Above Figure shows a fact constellation schema which specifies two fact tables, sales and
shipping. The sales table definition is identical to that of the star schema (Figure 4.6). The
shipping table has five dimensions, or keys—item key, time_key, shipper_key, from_location,
and to_location, and two measures dollars_cost and units_shipped. A fact constellation schema
allows dimension tables to be shared between fact tables. For example, the dimensions tables for
time, item, and location are shared between the sales and shipping fact tables.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Many concept hierarchies are implicit within the database schema. These attributes are related by
a total order, forming a concept hierarchy such as “street < city < province or state < country.”
This hierarchy is shown in Figure (a). Alternatively, the attributes of a dimension may be
organized in a partial order, forming a lattice. An example of a partial order for the time
dimension based on the attributes day, week, month, quarter, and year is “day < fmonth <
quarter; weekg < year”. This lattice structure is shown in Figure (b).
Schema Hierarchy. A concept hierarchy that is a total or partial order among attributes in a
database schema is called a schema hierarchy.
Concept hierarchies may also be defined by discretizing or grouping values for a given
dimension or attribute, resulting in a set-grouping hierarchy. A total or partial order can be
defined among groups of values.
Concept hierarchies may be provided manually by system users, domain experts, or knowledge
engineers, or may be automatically generated based on statistical analysis of the data
distribution.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Ex: A multidimensional point in the data cube space can be defined by a set of dimension–value
pairs; for example, <time = “Q1”, location = “Vancouver”, item = “computer”>.
Example: sum(), count(), min(), and max() are distributive aggregate functions.
sum() can be computed for a data cube by first partitioning the cube into a set of
subcubes, computing sum() for each subcube, and then summing up the counts obtained for each
subcube. Hence, sum() is a distributive aggregate function.
avg() (average) can be computed by sum()/count(), where both sum() and count() are distributive
aggregate functions.
3) Holistic: An aggregate function is holistic if there is no constant bound on the storage size
needed to describe a subaggregate. That is, there does not exist an algebraic function with M
arguments (where M is a constant) that characterizes the computation. A measure is holistic if it
is obtained by applying a holistic aggregate function.
Example: Holistic functions include median(), mode(), and rank().
Roll-up: The roll-up operation (also called the drill-up operation by some vendors) performs
aggregation on a data cube, either by climbing up a concept hierarchy for a dimension or by
dimension reduction.
Ex:
Figure shows the result of a roll-up operation performed on the central cube by climbing up the
concept hierarchy for location This hierarchy was defined as the total order “street < city <
province or state < country.” The roll-up operation shown aggregates the data by ascending the
location hierarchy from the level of city to the level of country.
NOTE: When roll-up is performed by dimension reduction, one or more dimensions are
removed from the given cube.
Ex: consider a sales data cube containing only the location and time dimensions. Roll-up may be
performed by removing, say, the time dimension, resulting in an aggregation of the total sales by
location, rather than by location and by time.
Drill-down: Drill-down is the reverse of roll-up. It navigates from less detailed data to more
detailed data. Drill-down can be realized by either stepping down a concept hierarchy for a
dimension or introducing additional dimensions.
Ex: Figure shows the result of a drill-down operation performed on the central cube by
stepping down a concept hierarchy for time defined as “day < month < quarter < year.” Drill-
down occurs by descending the time hierarchy from the level of quarter to the more detailed
level of month. The resulting data cube details the total sales per month rather than summarizing
them by quarter.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
NOTE: Drill-down adds more detail to the given data it can also be performed by adding new
dimensions to a cube such as customer group in the figure.
Slice: The slice operation performs a selection on one dimension of the given cube, resulting in a
subcube.
Ex: a slice operation where the sales data are selected from the central cube for the
dimension time using the criterion time = “Q1”.
Dice: The dice operation defines a subcube by performing a selection on two or more
dimensions.
Ex: a dice operation on the central cube based on the following selection criteria that
involve three dimensions: (location D “Toronto” or “Vancouver”) and (time D “Q1” or “Q2”)
and (item D “home entertainment” or “computer”).
Pivot (rotate): Pivot (also called rotate) is a visualization operation that rotates the data axes in
view to provide an alternative data presentation.
Ex: a pivot operation where the item and location axes in a 2-D slice are rotated. Other
examples include rotating the axes in a 3-D cube, or transforming a 3-D cube into a series of 2-D
planes.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Q) Explain the three kinds of data warehouse applications. How does data mining relate to
information processing and online analytical processing?
Ans:
There are three kinds of data warehouse applications: information processing, analytical
processing, and data mining.
Information processing supports querying, basic statistical analysis, and reporting using
crosstabs, tables, charts, or graphs. A current trend in data warehouse information processing is
to construct low-cost web-based accessing tools that are then integrated with web browsers.
Data mining supports knowledge discovery by finding hidden patterns and associations,
constructing analytical models, performing classification and prediction, and presenting the
mining results using visualization tools.
Information processing, based on queries, can find useful information. However, answers to
such queries reflect the information directly stored in databases or computable by aggregate
functions. They do not reflect sophisticated patterns or regularities buried in the database.
Therefore, information processing is not data mining. Online analytical processing comes a step
closer to data mining because it can derive information summarized at multiple granularities
from user-specified subsets of a data warehouse.
Q) Why the multidimensional data mining is particularly important for? Mentions the
reasons.
Reasons are as follows:
1) High quality of data in data warehouses: Most data mining tools need to work on
integrated, consistent, and cleaned data, which requires costly data cleaning, data integration, and
data transformation as preprocessing steps. A data warehouse constructed by such preprocessing
serves as a valuable source of high-quality data for OLAP as well as for data mining. Notice that
data mining may serve as a valuable tool for data cleaning and data integration as well.
2) Available information processing infrastructure surrounding data warehouses:
Comprehensive information processing and data analysis infrastructures have been or will be
systematically constructed surrounding data warehouses, which include accessing, integration,
consolidation, and transformation of multiple heterogeneous databases, ODBC/OLEDB
connections, Web accessing and service facilities, and reporting and OLAP analysis tools. It is
prudent to make the best use of the available infrastructures rather than constructing everything
from scratch.
3) OLAP-based exploration of multidimensional data: Effective data mining needs
exploratory data analysis. A user will often want to traverse through a database, select portions
of relevant data, analyze them at different granularities, and present knowledge/ results in
different forms. Multidimensional data mining provides facilities for mining on different subsets
of data and at varying levels of abstraction—by drilling, pivoting, filtering, dicing, and slicing on
a data cube and/or intermediate data mining results. This, together with data/knowledge
visualization tools, greatly enhances the power and flexibility of data mining.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
4) Online selection of data mining functions: Users may not always know the specific kinds of
knowledge they want to mine. By integrating OLAP with various data mining functions,
multidimensional data mining provides users with the flexibility to select desired data mining
functions and swap data mining tasks dynamically.
Q) Illustrate the business analysis framework for data warehouse design and mention Four
different views regarding a data warehouse design.
Ans:
First, having a data warehouse may provide a competitive advantage by presenting relevant
information from which to measure performance and make critical adjustments to help win over
competitors.
Second, a data warehouse can enhance business productivity because it is able to quickly and
efficiently gather information that accurately describes the organization.
Third, a data warehouse facilitates customer relationship management because it provides a
consistent view of customers and items across all lines of business, all departments, and all
markets.
Finally, a data warehouse may bring about cost reduction by tracking trends, patterns, and
exceptions over long periods in a consistent and reliable manner.
To design an effective data warehouse we need to understand and analyze business needs and
construct a business analysis framework. The construction of a large and complex information
system can be viewed as the construction of a large and complex building, for which the owner,
architect, and builder have different views.
Four different views regarding a data warehouse design must be considered: the topdown view,
the data source view, the data warehouse view, and the business query view.
1) The top-down view allows the selection of the relevant information necessary for the data
warehouse. This information matches current and future business needs.
2) The data source view exposes the information being captured, stored, and managed by
operational systems. This information may be documented at various levels of detail and
accuracy, from individual data source tables to integrated data source tables. Data sources are
often modeled by traditional data modeling techniques, such as the entity-relationship model or
CASE (computer-aided software engineering) tools.
3) The data warehouse view includes fact tables and dimension tables. It represents the
information that is stored inside the data warehouse, including pre calculated totals and counts,
as well as information regarding the source, date, and time of origin, added to provide historical
context.
4) The business query view is the data perspective in the data warehouse from the end-user’s
viewpoint.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
Ans:
The warehouse design process consists of the following steps:
1. Choose a business process to model (e.g., orders, invoices, shipments, inventory, account
administration, sales, or the general ledger). If the business process is organizational and
involves multiple complex object collections, a data warehouse model should be followed.
However, if the process is departmental and focuses on the analysis of one kind of business
process, a data mart model should be chosen.
2. Choose the business process grain, which is the fundamental, atomic level of data to be
represented in the fact table for this process (e.g., individual transactions, individual daily
snapshots, and so on).
3. Choose the dimensions that will apply to each fact table record. Typical dimensions are time,
item, customer, supplier, warehouse, transaction type, and status.
4. Choose the measures that will populate each fact table record. Typical measures are numeric
additive quantities like dollars sold and units sold.
Because data warehouse construction is a difficult and long-term task, its implementation
scope should be clearly defined. The goals of an initial data warehouse implementation should be
specific, achievable, and measurable. This involves determining the time and budget allocations,
the subset of the organization that is to be modeled, the number of data sources selected, and the
number and types of departments to be served.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]
S J P N Trust's CSE Dept.
Hirasugar Institute of Technology, Nidasoshi. DMDW
Inculcating Values, Promoting Prosperity Module-I Notes
Approved by AICTE,Recognized by Govt.of Karnataka, Affiliated to VTU Belagavi,
Accredited at “A” Grade by NAAC and Recognized Under Sectoin 2(f) of UGC Act,1956 2018-19 (EVEN)
ASSIGNMENT - I
Sem: VI Sub: Data Mining and Data Warehousing Sub. Code: 15CS651
Max. Marks : 25 Mapped CO: C320.1 Date: 07-03-2019
Module – 1
Q. RBT
Description of Question Marks
No. Level
BATCH 1
BATCH 2
BATCH 3
1 Define Data Warehouse. List and define a key features of Data Warehouse. 5 L2
2 Explain the Data Cube (OLAP) operation with an example for each. 5 L2
3 Define data cube. With example, explain a multidimensional data model. 5 L2
Explain the recommended approach for data warehouse development with neat 5 L2
4
diagram.
Develop a 4-D data cube representation of sales data, according to time, item, location 5 L3
5
and supplier.
Dept. of CSE, HSIT Nidasoshi, Taq: Hukkeri, Dist: Belagavi, Karnataka - 591 236
Prepared by: Prof Shilpa B. Hosagoudra, mail-id : [email protected]