Introduction
SQL Server Data Warehousing interview questions and answers
were original published in three series. This complete series is combined
in one article which is listed here in this article. This article is
PDF which is available to download for free.
Interview Questions and Answer PDF contains questions from beginner to advance users.
Visit complete series as well as final link to download the PDF.
Points of Interest
Complete Series of SQL Server Interview Questions and Answers
SQL SERVER - Data Warehousing Interview Questions and Answers - Introduction
SQL SERVER - Data Warehousing Interview Questions and Answers - Part 1
SQL SERVER - Data Warehousing Interview Questions and Answers - Part 2
SQL SERVER - Data Warehousing Interview Questions and Answers - Part 3
SQL SERVER - Data Warehousing Interview Questions and Answers Complete List Download
Samples Questions and Answers
What are slowly changing dimensions (SCD)?
SCD is abbreviation of Slowly changing dimensions. SCD applies to cases where the attribute for a record varies over time.
There are three different types of SCD.
1) SCD1 : The new record replaces the original record. Only one record exist in database - current data.
2) SCD2 : A new record is added into the
customer dimension table. Two records exist in database - current data
and previous history data.
3) SCD3 : The original data is modified to
include new data. One record exist in database - new information are
attached with old information in same row.
Differences between star and snowflake schema?
Star schema - A single fact table with N
number of Dimension, all dimensions will be linked directly with a fact
table. This schema is de-normalized and results in simple join and less
complex query as well as faster results.
Snow schema - Any dimensions with extended
dimensions are know as snowflake schema, dimensions maybe interlinked
or may have one to many relationship with other tables. This schema is
normalized and results in complex join and very complex query as well
as slower results.
What is surrogate key?
Surrogate key is a substitution for the natural primary key. It is just
a unique identifier or number for each row that can be used for the
primary key to the table. The only requirement for a surrogate primary
key is that it is unique for each row in the table. It is useful
because the natural primary key can change and this makes updates more
difficult.Surrogated keys are always integer or numeric.
What is ER Diagram?
Entity Relationship Diagrams are a major data modelling 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 are the Different methods of loading Dimension tables?
There are two different ways to load data in dimension tables.
Conventional (Slow) :
All the constraints and keys are validated against the data before, it is loaded, this way data integrity is maintained.
Direct (Fast) :
All the constraints and keys are disabled before the data is loaded.
Once data is loaded, it is validated against all the constraints and
keys. If data is found invalid or dirty it is not included in index and
all future processes are skipped on this data.
SQL SERVER - Data Warehousing Interview Questions and Answers Complete List Download