SQL SERVER - Data Warehousing Interview Questions and Answers - Part 1
SQL SERVER - Data Warehousing Interview Questions and Answers - Part 1
What is OLTP?
OLTP is abbreviation of On-Line Transaction Processing. This system is an application that
modifies data the instance it receives and has a large number of concurrent users.
What is OLAP?
OLAP is abbreviation of Online Analytical Processing. This system is an application that
collects, manages, processes and presents multidimensional data for analysis and management
purposes.
Process Goal
OLTP: Snapshot of business processes which does fundamental business tasks
OLAP: Multi-dimensional views of business activities of planning and decision making
Database Design
OLTP: Normalized small database. Speed will be not an issue due to smaller database and
normalization will not degrade performance. This adopts entity relationship(ER) model and an
application-oriented database design.
OLAP: De-normalized large database. Speed is issue due to larger database and de-normalizing
will improve performance as there will be lesser tables to scan while performing tasks. This
adopts star, snowflake or fact constellation mode of subject-oriented database design.
Describes the foreign key columns in fact table and dimension table?
Foreign keys of dimension tables are primary keys of entity tables.
Foreign keys of facts tables are primary keys of Dimension tables.
What is ER Diagram?
Entity Relationship Diagrams are a major data modeling tool and will help organize the data in
your project into entities and define the relationships between the entities. This process has
proved to enable the analyst to produce a good database structure so that the data can be stored
and retrieved in a most efficient manner.
An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships
between entities in a database. A type of diagram used in data modeling for relational data bases.
These diagrams show the structure of each table and the links between tables.
What is ODS?
ODS is abbreviation of Operational Data Store. A database structure that is a repository for near
real-time operational data rather than long term trend data. The ODS may further become the
enterprise shared operational database, allowing operational systems that are being re-engineered
to use the ODS as there operation databases.
What is ETL?
ETL is abbreviation of extract, transform, and load. ETL is software that enables businesses to
consolidate their disparate data while moving it from place to place, and it doesn’t really matter
that that data is in different forms or formats. The data can come from any source.ETL is
powerful enough to handle such data disparities. First, the extract function reads data from a
specified source database and extracts a desired subset of data. Next, the transform function
works with the acquired data – using rules orlookup tables, or creating combinations with other
data – to convert it to the desired state. Finally, the load function is used to write the resulting
data to a target database.
What is VLDB?
VLDB is abbreviation of Very Large DataBase. A one terabyte database would normally be
considered to be a VLDB. Typically, these are decision support systems or transaction
processing applications serving large numbers of users.
If de-normalized is improves data warehouse processes, why fact table is in normal form?
Foreign keys of facts tables are primary keys of Dimension tables. It is clear that fact table
contains columns which are primary key to other table that itself make normal form table.
Ralph Kimball’s paradigm: Data warehouse is the conglomerate of all data marts within the
enterprise. Information is always stored in the dimensional model.