Tell me one example for junk dimension?

Answer Posted / manoj

When developing a dimensional model, we often encounter miscellaneous flags and indicators. These flags do not logically belong to the core dimension tables.

A junk dimension is grouping of low cardinality flags and indicators. This junk dimension helps in avoiding cluttered design of data warehouse. Provides an easy way to access the dimensions from a single point of entry and improves the performance of sql queries.

Example: For example, assume that there are two dimension tables (gender and marital status). The data of these two tables are shown below:

Code:
Table: Gender
Id Gender_status
----------------
1 Male
2 Female

Table: Marital Status
Id Marital_Status
----------------
1 Single
2 Married
Here both the dimensions have low cardinality flags. This will cause maintenance of two tables and decrease performance of sql queries.

We can combine these two dimensions into a single table by cross joining and can maintain a single dimension table. The result of cross join is shown below:

Code:
id gender mrg_status
--------------------
1 Male Single
2 Male Married
3 Female Single
4 Female Married

This new dimension table is called a junk dimension. This will improve the manageability and improves the sql queries performance.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many clustered indexes can you create for a table in dwh? In case of truncate and delete command what happens to table, which has unique id.

537


Where we use surrogate key explain with example?

576


Hi Friends, Can anyone tell me. is there any certification in Database testing or BI testing or ETL testing international certification? Thanks ArunKumar

1557


What is the difference between snowflake and star schema?

583


What is is the guidelines to build universe with better performance? R performance tuning issues of universes?

484






Explain techniques of error handling - ignore , rejecting bad records to a flat file , loading the records and reviewing them (default values)?

513


Tell me what is full load & incremental or refresh load?

508


Explain piconet?

546


Explain difference between data ware house & data mart?

518


What is the differences between star and snowflake schemas?

541


What is freehand sql?

603


What is a view as it relates to system modeling?

586


Can you state some of the innovations throughout history?

544


How to improve session performance in aggregator transformation?

526


Explain what is power center repository?

558