Solved

10777: Designing a Data Warehouse: Dimension table indexes:

Posted on 2014-11-05
3
270 Views
Last Modified: 2014-11-06
Hi experts:

i am reading about Dimension table indexes, but i do not understand
1. Create a nonclustered primary key index
2. Create a clustered business key index

I can show you an example of each
0
Comment
Question by:enrique_aeo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40425113
Please do.
0
 

Author Comment

by:enrique_aeo
ID: 40425141
The code if it is,
I do not understand is the concept, which means that the difference.
When to use one or the other?
0
 
LVL 3

Accepted Solution

by:
smilieface earned 500 total points
ID: 40425336
The difference between non-clustered and clustered indexes is well documented elsewhere. However in brief the answers to this might be:

A Primary Key is unique, and for something like a data warehouse dimension table where you have "generational" data (changes to the record are written as a new record, and the old record is retained) we often see a "surrogate key" used. The "natural" keys (such as Customer Id will be repeated on generations of data

The clustered index doesn't have to be unique, but defines where the data is stored, as it is a sorted index. This will mean that other strategies, such as storing all the data updated on a specific date together, can be explored. This would enable faster reporting if the report is based on dates.

Essentially, the clustered index is the one you WANT to use for data retrieval. The Primary Key is just a Unique index.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question