Professional Documents
Culture Documents
Abhishek Mishra
Thane West, Maharashtra, India
Sanjeev Kumar
Gurgaon, Haryana, India
This work is subject to copyright. All rights are solely and exclusively
licensed by the Publisher, whether the whole or part of the material is
concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in
any other physical way, and transmission or information storage and
retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed.
The publisher, the authors, and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
1. Introduction
Anjani Kumar1 , Abhishek Mishra2 and Sanjeev Kumar3
(1) Gurgaon, India
(2) Thane West, Maharashtra, India
(3) Gurgaon, Haryana, India
Data Mart
A data mart is a subset of a larger data warehouse and is designed to
serve the needs of a particular business unit or department. Data marts
are used to provide targeted, specific information to end users, allowing
them to make better, data-driven decisions.
A data mart is typically designed to store data that is relevant to a
specific business area or function, such as sales, marketing, or finance.
Data marts can be created using data from the larger data warehouse,
or they can be created as standalone systems that are populated with
data from various sources.
Data Modeling
In the field of data warehousing, there are two main approaches to
modeling data: tabular modeling and dimensional modeling. Both
approaches have their strengths and weaknesses, and choosing the
right one for your specific needs is crucial to building an effective data
warehouse.
Tabular Modeling
Tabular modeling is a relational approach to data modeling, which
means it organizes data into tables with rows and columns. This
approach is well suited to handling large volumes of transactional data
and is often used in OLTP (online transaction processing) systems. In a
tabular model, data is organized into a normalized schema, where each
fact is stored in a separate table, and the relationships between the
tables are established through primary and foreign keys.
The advantages of tabular modeling include its simplicity, ease of use,
and flexibility. Because data is organized into a normalized schema, it is
easier to add or modify data fields, and it supports complex queries and
reporting. However, tabular models can become more complex to query
and maintain as the number of tables and relationships increases, and it
can be slower to process queries on large datasets.
Dimensional Modeling
Dimensional modeling is a more specialized approach that is optimized
for OLAP (online analytical processing) systems. Dimensional models
organize data into a star or snowflake schema, with a fact table at the
center and several dimension tables surrounding it. The fact table
contains the measures (i.e., numerical data) that are being analyzed,
while the dimension tables provide the context (i.e., descriptive data)
for the measures.
Also, dimensional modeling is optimized for query performance,
making it well suited for OLAP and especially reporting systems.
Because data is organized into a star or snowflake schema, it is easier to
perform aggregations and analyses, and it is faster to query large
datasets. Dimensional models are also easier to understand and
maintain, making them more accessible to business users. However,
dimensional models can be less flexible and more complex to set up,
and they may not perform as well with transactional data.
In conclusion, both tabular and dimensional modeling have their
places in data warehousing, and the choice between them depends on
the specific needs of your organization. Tabular modeling is more
suited to handling large volumes of transactional data, while
dimensional modeling is optimized for OLAP systems and faster query
performance.
The fact table contains the numerical values, and it is linked to the
dimension tables through foreign key relationships. The fact table is
typically wide and has fewer rows than the dimension table.
Best practices for designing facts include the following:
Choose appropriate measures: It is important to choose measures
that are meaningful and appropriate for the business.
Normalize the data: Normalizing the data in the fact table can help
to reduce redundancy and improve performance.
Use additive measures: Additive measures can be aggregated across
all dimensions, while non-additive measures are specific to a single
dimension.
Measures
Measures are the values that we use to aggregate and analyze the facts.
Measures are the result of applying mathematical functions to the
numerical data in the fact table.
For example, measures could include average sales, total sales, and
maximum sales. Measures can be simple or complex, and they can be
derived from one or more facts. Measures can be pre-calculated and
stored in the fact table, or they can be calculated on the fly when the
user queries the data warehouse.
Best practices for designing measures include the following:
Choose appropriate functions: It is important to choose functions
that are appropriate for the business and the data being analyzed.
Use consistent units of measurement: Measures should use
consistent units of measurement to avoid confusion.
Avoid calculations in the query: Pre-calculate measures that are
frequently used to improve performance.
OLAP
OLAP, or online analytical processing, is a critical component of data
warehousing that facilitates complex and interactive data analysis. It is
a technology used for organizing and structuring data in a way that
enables users to perform multidimensional analysis efficiently. OLAP
systems are designed to support complex queries and reporting
requirements, making them invaluable for decision-makers and
analysts in business intelligence and data analytics. In the next section
we will try to understand OLAP better.
Cubes provide a fast and efficient way to analyze data. They can
aggregate data across multiple dimensions, allowing users to drill down
and explore data at different levels of granularity. This makes it easier
to identify trends, patterns, and anomalies in the data.
Categorization of OLAP
OLAP can be categorized into different types based on its architecture
and the way it processes data. Here are some of the different types of
OLAP and their examples and query techniques:
ROLAP (Relational OLAP): This type of OLAP works directly with
relational databases and SQL queries. The data is stored in a
relational database, and queries are executed against the database to
generate reports. ROLAP is useful for handling large volumes of data
and complex queries.
Example: Microsoft SQL Server Analysis Services
Query Technique: SQL queries
MOLAP (Multidimensional OLAP): This type of OLAP stores data in
a multidimensional cube structure, which allows for faster
processing of data and complex calculations. MOLAP cubes can be
pre-aggregated, which improves query performance.
Example: IBM Cognos TM1
Query Technique: MDX (multidimensional expressions)
HOLAP (Hybrid OLAP): This type of OLAP combines the features of
both ROLAP and MOLAP. It stores the data in a relational database
and uses a multidimensional cube structure for querying.
Example: Oracle Essbase
Query Technique: SQL and MDX
DOLAP (Desktop OLAP): This type of OLAP is designed for small-
scale data analysis and runs on a desktop computer. It can be used to
perform ad-hoc queries and analysis.
Example: Microsoft Excel
Query Technique: Point-and-click interface or formula-based
calculations.
WOLAP (Web-based OLAP): This type of OLAP runs on a web
browser and allows users to access data remotely. It is useful for
collaborative data analysis and reporting.
Example: MicroStrategy Web
Query Technique: Point-and-click interface or SQL-like queries.
Querying Technique
While there are multiple programmable ways to query data from an
OLAP cube, such as SQL and other programming languages, MDX has
been one of the most prominent options to query cube data.
For almost two decades, MDX has been used as a primary powerful
way to query and analyze multidimensional data, allowing users to gain
insights from complex datasets that would be difficult to analyze using
Another random document with
no related content on Scribd:
Vaimo makasi hetkisen hiljaa, sitten hän taas virkkoi:
— Semjon!
— Hä?
Semjon virkkoi:
— En osaa mitään.
Semjon oli ihmeissään ja sanoi:
— Mihail.
VI
Päivä meni, toinen tuli, viikot kuluivat, ja sitten meni vuosi umpeen.
Mihail asui yhä vielä Semjonin luona tehden hänelle työtä. Pian
sanoivat kaikki, ettei matkojen päässä ollut parempaa suutaria kuin
Semjonin uusi oppipoika; kukaan ei muka osannut tehdä niin siistiä
ja kestävää työtä. Kaikkialta ympäristöstä tuli ihmisiä Semjonin
luokse teettämään itselleen saappaita, joten suutari sai kootuksi
itselleen jonkin verran omaisuutta.
Poika toi heti käärön. Herra otti sen häneltä, laski pöydälle ja
sanoi:
— Avaa se!
— Otetaanko?
Mihail vastasi:
— Kyllä ne ovat valmiit silloin kun pitääkin.
— Hyvä on!
Ja Matrjona sanoi:
VII
Matrjona tuli pöydän ääreen. Hän katseli, kuinka Mihail teki työtä,
ja oli ihmeissään. Hän ymmärsi jonkin verran suutarinammattia ja
huomasi, ettei Mihail leikannut nahasta varsisaappaita, vaan kevyitä,
matalia kenkiä.
Matrjona aikoi kysyä häneltä, mitä hän oikein tekee, mutta ajatteli
kuitenkin: »Ehkä minä en ymmärrä, miten ylhäisille tehdään
saappaita. Mihail tietää varmaan sen paremmin. Parasta, etten
sekaannu koko asiaan.»
Hän oli tuskin alkanut nuhdella, kun joku koputteli ulko-oven ripaa.
He katsoivat ulos ikkunasta ja näkivät miehen ratsun selässä
pysähtyneen mökin ulkopuolelle ja sitovan kiinni hevostaan. He
avasivat oven: ylhäisen herran renkipoika astui sisään.
— Hyvää päivää!
— Kun läksi teiltä, niin matkalla kuoli rekeen. Kun oli päästy kotiin
ja tultiin auttamaan herraa pois reestä, makasi tämä kuolleena ja
kankeana. Saimme hänet suurella vaivalla nostetuksi pois reestä.
Rouva lähetti minut sitten tänne: — Sano suutarille, että herra, joka
äskettäin kävi siellä ja jätti sinne nahkaa, ei enää tarvitse saappaita;
saappaiden sijaan olisi kiireesti ommeltava tohvelipari ruumiille.
Odota, kunnes tohvelit ovat valmiit, ja tuo ne mukanasi! Sen takia
minä olen nyt tullut tänne ja odotan, kunnes tohvelit valmistuvat.
VIII
— Hyvää päivää!
— Mikäpäs siinä! Ei sitä ole meillä vielä koskaan tehty kenkiä näin
pienille lapsille, mutta osataanhan ne tehdä. Minkälaiset vain
määräätte. Tältä minun apulaiseltani syntyy millainen kenkä tahansa.
Hän oli yksin, kun lapset syntyivät, ja yksin, kun veti viimeisen
henkäyksensä.
Ja Mihail vastasi:
Ja Semjon virkkoi:
Ja Mihail vastasi:
Lapset liikahtelivat äitinsä vieressä, mutta äiti oli niin heikko, ettei
jaksanut ottaa heitä rintaansa vasten. Kun äiti näki minut, ymmärsi
hän, että Jumala oli minut lähettänyt noutamaan hänen sieluaan.
Hän itki ja virkkoi minulle: »Jumalan enkeli! Mieheni on vastikään
haudattu, hän jäi kaatuvan puun alle. Minulla ei ole sisarta, ei tätiä
eikä isoäitiä; ei ole ketään, joka voisi kasvattaa lapseni isoiksi. Älä
ota sieluani, anna minun elää, jotta voisin elättää ja kasvattaa
lapsiani. Ilman isää ja ilman äitiä he eivät voi elää.» Tein kuten hän
pyysi, ja panin toisen lapsista hänen rintaansa vasten ja toisen
hänen käsivarrelleen ja liidin ylös Jumalan luo. Tulin Jumalan luo ja
sanoin: En voi ottaa tuon äidin sielua. Isän surmasi kaatuva puu
metsässä, ja äiti synnytti kaksoset ja rukoilee, etten ottaisi hänen
sieluansa. Hän sanoo: 'Anna minun kasvattaa lapseni suuriksi! Ilman
isää ja ilman äitiä he eivät voi elää.' Ja niin jätin ottamatta tuon äidin
sielun. — Ja Herra sanoi minulle: 'Mene, tuo hänen sielunsa! Sinä
tulet käsittämään kolme sanaa: tulet ymmärtämään, mitä ihmisissä
on, mitä ihmisille ei ole annettu, ja mistä ihmiset elävät. Kun olet sen
oppinut, saat palata taivaaseen. Liidin jälleen maailmaan ja otin
äidiltä sielun.
XI
Mitä ihmisissä on, sen minä jo tiesin. Nyt minulle selvisi, mitä
ihmisille ei ole annettu. Ihmisten ei ole annettu tietää, mitä he
ruumistaan varten tarvitsevat. Ja minä hymyilin toisen kerran. Sillä
minä iloitsin, kun näin toverini enkelin ja kun Jumala oli ilmaissut
minulle toisenkin sanan.
XII
Ja enkelin yltä putosivat maalliset vaatteet, ja hän verhoutui valoon,
niin ettei ihmissilmä voinut häneen katsoa. Ja hän puhui kovemmalla
äänellä, ja tuntui kuin se ääni olisi tullut taivaasta eikä hänestä. Ja
enkeli sanoi: