Solved

10777: Designing a Data Warehouse: Dimension table indexes:

Posted on 2014-11-05
3
265 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

785 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