Académique Documents
Professionnel Documents
Culture Documents
What is the main difference in the logic when you create a mapping for a dimension table with that of a fact table in Informatica.
RE: Dimension Table Vs Fact Table Fact table contains numeric facts. i.e., key performence indicatiors. A dimention table is a primary key foregin key relation to fact tbale.
RE: Dimension Table Vs Fact Table Dimension Table features 1. It provides the context /descriptive information for a fact table measurements. 2. Provides entry points to data. 3. Structure of Dimension - Surrogate key , one or more other fields that compose the natural key (nk) and set of Attributes. 4. Size of Dimension Table is smaller than Fact Table. 5. In a schema more number of dimensions are presented than Fact Table. 6. Surrogate Key is used to prevent the primary key (pk) violation(store historical data). 7. Values of fields are in numeric and text representation. Fact Table features 1. It provides measurement of an enterprise. 2. Measurement is the amount determined by observation. 3. Structure of Fact Table - foreign key (fk), Degenerated Dimension and Measurements. 4. Size of Fact Table is larger than Dimension Table. 5. In a schema less number of Fact Tables observed compared to Dimension Tables. 6. Compose of Degenerate Dimension fields act as Primary Key. 7. Values of the fields always in numeric or integer form.
RE: Dimension Table Vs Fact Table Dimention Table - A pure dimention table is a collection of primary keys Fact Table - A pure fact table is collection of foreign keys.
2RE: Dimension Table Vs Fact Table I think there won't be any logic difference in a mapping to load dimension table & fact table. We can load the dimension table directly but we can't load the fact table first. So, to load the fact table we need to load the dimension table first. Also while loading the fact table we will make a lookup on the dimensioin table, cause the fact table contains the measures/facts & the foreign keys which are primary keys in the dimension tables surrounded to that fact table. We can load the dimension table & fact table in one mapping by using the "Target Load Order/Target Load Plan" in informatica. Example: / Target 1 (Dimension Table) Source - Transformations Target 2 (Fact Table) etc..... Answered On : Aug 7th, 2008 The main difference between dimension and the fact table is that Dimension preserves the historical data (like in case of type2) we will have to use update strategy and other transformations to make that happen but fact will be a direct load with few one or more lookups from the dimension and also since the fact and dimenision has the foriegn key relationship the dimension has to be loaded first before the fact Answered On : Aug 15th, 2008 Login to rate this answer.
Kadhirvelu 3 Answers Member Since Apr-2007 RE: Dimension Table Vs Fact Table
Dimensions are particular angle or perspective that you see the facts i.e aggregates or measures. as mentioned in previous replies, facts cannot be loaded unless until dimensions got loaded. Answered On : Oct 23rd, 2008 Login to rate this answer.
sahan 10 Answers Member Since Jul-2009 RE: Dimension Table Vs Fact Table You can load the dimension table directly, but you cannot load the fact table directly, You need to look up the dimension table, b'coz fact tables contains foreign keys, which are the primary keys in dimension table. You can load the dimensions and facts into one mapping using target load plan. Answered On : Jul 16th, 2009 Login to rate this answer.
Karin Divens Guest Re: Dimension Table Vs Fact Table .. But you are aware of the fact that the Target Load Order is only available if you have different pipelines, right? Answered On : Aug 19th, 2011 Login to rate this answer.
ram_infa 25 Answers Member Since Jul-2011 Re: Dimension Table Vs Fact Table The data in the dimensions table is generally static and descriptive. The fact table contains two columns one is foreign key and the other fact data generally the data in the fact tables contains numeric data Answered On : Sep 7th, 2011 Login to rate this answer.
ram_infa
25 Answers Member Since Jul-2011 Re: Dimension Table Vs Fact Table Difference between dimension and fact tables 1) dimension data is denormalized where as fact table contains normalized data 2)dimension table contains many columns where as fact table contains less columns only 2 in fact 3) the data in the dimension tables are less compared to the data in the fact tables 4) The data in the dimension table is static and descriptive in nature where as the fact table contains numeric and will change regularly 5) dimension tables generally called as lookup or reference table as well. facts tables are the key performance indicators of the business
Teradata Interview Questions Business Objects Interview Questions Cognos Interview Questions Informatica Interview Questions Crystal Enterprise Suite Interview Questions Actuate Interview Questions Ab Initio Interview Questions Data Stage Interview Questions SAS Interview Questions Micro Strategy Interview Questions ETL Interview Questions Data Warehouse General Interview Questions
Hi,We have a fact table mapping, for which the source is a flat file of say approximately 75K rows - this is a monthly load but the source provider may release the second file in the same month if there are errors in the first file. Business requirement is such that we cannot wait till we get the second file which means as soon as we get a file it has to be loaded into the fact table. And when we get the second file, all the records from the first file can comfortably be replaced with that of the records from the second file based on the dt column. To implement this update, problem is we don't have natural keys in the data. What options do we have to achieve this ?Also, in general - what are the strategies we can implement to avoid duplicate records in the fact table (if a workflow runs again by mistake)Thanks
Hi,We have a fact table mapping, for which the source is a flat file of say approximately 75K rows - this is a monthly load but the source provider may release the second file in the same month if there are errors in the first file. Business requirement is such that we cannot wait till we get the second file which means as soon as we get a file it has to be loaded into the fact table. And when we get the second file, all the records from the first file can comfortably be replaced with that of the records from the second file based on the dt column. To implement this update, problem is we don't have natural keys in the data. What options do we have to achieve this ?Also, in general - what are the strategies we can implement to avoid duplicate records in the fact table (if a workflow runs again by mistake)Thanks
Thanks for the valuable input from all of you. Yes, the table is partitioned on monthly basis and we are deleting the last partition if the snapshot_dt in the source and target matches.
Hi, Maybe you could try to partition your fact table on monthly basis and then truncate last partition before loading second file?
Hi Palani, It includes all dimension keys. Problem is there is no natural key in this table to use lookup and update
strategy. As an alternative, I am thinking of using a PRE-SQL to delete the rows from the fact table where the SNAPSHOT_DT matches with the source file SNAPSHOT_DT and insert the rows from the second file after the deletion is complete. But not sure how safe this approach is and also, to delete some 70 K + rows from a fact table that has millions of records - how efficient it is performance wise. Any ideas ? Thanks