If I have table T1 and table T2

T1 has 250 cols and 10,000 rows
T2 has 2 billion rows and 10 cols

Which one would be Fact table and which one would be
Dimension table and why ?

Answers were Sorted based on User's Feedback



If I have table T1 and table T2 T1 has 250 cols and 10,000 rows T2 has 2 billion rows and 10 col..

Answer / bluegems

Whether table T1 and T2 are dimension or fact table depends
on the information they store. If the all the measures are
in T1 with dimensions key in it then T1 table is fact and if
T1 is having a pk and textual information then it is
dimension and visa versa.

Idealy the number of row in fact table is very high. In this
case it looks like T2 may be the fact and T1 may be the
dimension. But cann't be said for sure as the information
given is incomplete.

Is This Answer Correct ?    30 Yes 1 No

If I have table T1 and table T2 T1 has 250 cols and 10,000 rows T2 has 2 billion rows and 10 col..

Answer / henry

Dimensions are wide - facts are deep.
T1 will be dimension table (example "customer" with all the
related attributes like address, tel etc)
T2 will be your fact table (example "orders") which uses
one column as surrogate key to link to T1 ("customers" in
this case)

Is This Answer Correct ?    13 Yes 0 No

If I have table T1 and table T2 T1 has 250 cols and 10,000 rows T2 has 2 billion rows and 10 col..

Answer / nithin

A table being set as a Fact or Dimension depends on the
kind of data it stores.Measures and keys are stored in
Facts and Dimension stores a primary key and other
information depending up on the dimension.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More Data Warehouse General Interview Questions

What is factless fact schema?

2 Answers  


What is operational data source (ODS)?

2 Answers  


What is Snow Flake Schema design in database?

3 Answers  


Explain what are the various reporting tools in the market?

0 Answers  


Explain the difference between data ware house & data mart?

0 Answers  






In general, how many Fact & Dimension tables are present in a Banking Data warehouse project ?

0 Answers  


What is Bulk Insert?

3 Answers  


What is a linked cube?

0 Answers  


How to add a number to a macro variable?

0 Answers  


What is surrogate key? Where we use it explain with example?

0 Answers  


How to test report in reportnet?

0 Answers  


Explain the difference between oltp and olap?

0 Answers  


Categories