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
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 |
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 |
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 |
What is surrogate key? Where we use it?
How to allow a dynamic selection of a column for a measure in a chart,without using variable?
Explain datawarehousing?
How to use the tool Ontobulider
Which kind of index is preferred in DWH?
what are the other factors of the database on which the loading performance depend?
What is the difference between metadata and data dictionary?
Explain if a flat file cotains 1000 records how can I get first and last records only?
Select * from emp,dept,loc where emp.deptno left outer join dept.deptno and dept.locno=loc.locno. No need to consider the syntax but is it possible to have left outer join and equi join in the same SQL like this ? can we have right outer join and left outer join in the same SQL ---
1 Answers Principal Finance, PT Metalogix Infolink Persada,
Explain difference between snow flake and star schema. What are situations where snow flake schema is better than star schema to use and when the opposite is true?
Explain where do we use semi and non additive facts?
Can we have more than one time dimensions in a Schema(Star or Snowflake)