GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Concepts  >  Data Modeling
Go To First  |  Previous Question  |  Next Question 
 Data Modeling  |  Question 18 of 27    Print  
In which normal form is the dimension table and fact table in the schema?

  
Total Answers and Comments: 2 Last Update: March 01, 2008     Asked by: madhu2732 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: SashaFroyland
 
Unlike OLTP, the goal of dimensional and fact modeling is not to achieve the highest Normal Form but rather to make key performance indicators (often sought after measures) readily accessible to ad-doc query. 

That being said, Dimensions can strive to be in Boyce-Codd 3rd normal form, while fact tables may be in 1st normal form - having only a primary key being unique. 

De-normalized dimensional tables may be in only 1st normal form but have the advantage of low storage space, while de-normalized 1st normal form dimensional table take more space but perform faster.

In my opinion, this kind of interview question has no single correct answer.  It's a question to get the interviewee to demonstrate their knowledge of normalization and dimensional modeling and the pros and cons of normalization and de-normalization with respect to query speed vs. physical storage.


Above answer was rated as good by the following members:
JSider, rishisen, sasi.a.kumar
January 21, 2008 21:06:33   #1  
canrizt Member Since: September 2007   Contribution: 1    

RE: In which normal form is the dimension table and fact table in the schema?
Every schema deals with Facts and Dimensions.

Fact will be the central table in the Schema were as Dimensions Table are the surrounded table of Fact.

Dimensions table is one who give the description of Business Transactions and always having Primary Key .

Fact table is one dealing with Measures and having Foriegn Key.

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
March 01, 2008 21:56:31   #2  
SashaFroyland Member Since: March 2008   Contribution: 6    

RE: In which normal form is the dimension table and fact table in the schema?
Unlike OLTP the goal of dimensional and fact modeling is not to achieve the highest Normal Form but rather to make key performance indicators (often sought after measures) readily accessible to ad-doc query.

That being said Dimensions can strive to be in Boyce-Codd 3rd normal form while fact tables may be in 1st normal form - having only a primary key being unique.

De-normalized dimensional tables may be in only 1st normal form but have the advantage of low storage space while de-normalized 1st normal form dimensional table take more space but perform faster.

In my opinion this kind of interview question has no single correct answer. It's a question to get the interviewee to demonstrate their knowledge of normalization and dimensional modeling and the pros and cons of normalization and de-normalization with respect to query speed vs. physical storage.

 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    

 Related Questions

Latest Answer : 3NF allows transitive dependency ...

Latest Answer : Yes. It is true that all the database should be in the third normal form. Hope, Third Normal Form is sufficient to tune the database and make it perfect. 4th Normal Form onwards it is not at all required to normalize. After third Normal Form, IF there ...

Latest Answer : First Normal Form sets the basic structure for an organized database by 1. Eliminating the duplicate/repetative columns from the same table.2. Create a seperate table for each set of related data and identify each set of related data (row) with ...

Latest Answer : Second normal form (2NF) addresses the concept of removing duplicative dataMeet all the requirements of the first normal form. Remove subsets of data that apply to multiple rows of a table and place them in separate tables. Create relationships between ...

Latest Answer : Star schema - normalized one snow flake-denormalized ...
Read Answers (7) | Asked by : Remo

ie. whether it should be Star schema or snow flake schema? 
Latest Answer : Pro Star Schema: Users find easier to query and faster query times. Space consequences of repeated data makes little difference as Dimensional table hold relatively fewer rows then the large Fact tables. Pro Snowflake Schema: DBA ...
Read Answers (1) | Asked by : madhu2732

Latest Answer : Unlike OLTP, the goal of dimensional and fact modeling is not to achieve the highest Normal Form but rather to make key performance indicators (often sought after measures) readily accessible to ad-doc query.  That being said, Dimensions can strive ...
Read Answers (2) | Asked by : madhu2732


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Performing DML Operations on XML Schema Based XMLType Views

Performing DML Operations on XML Schema Based XMLType Views Analyzing the underlying query of the empSch v view discussed in the preceding section you may note that each attribute of the EMP T object used in the select list maps to a certain column of a single table namely emps What this means in pr
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape