[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

The primary key

Asked by drmopco in Databases Miscellaneous

Tags: keys, natural, number

One of expert said that  "the primary key of a table is a set of one or more attributes such that every row in the table has a unique value. When these attributes are things that the business uses routinely, the key is called a “natural key.” Examples could include Social Security numbers, vehicle identification numbers, customer or patient IDs, account numbers, and so on. However, sometimes a table has no obvious natural key, or the natural key has many columns. Database designers frequently create a key using a sequence generator. This is called a “synthetic key,” because it serves the purpose of a primary key but has no real meaning to the business."   After research the internet and books I figured out  that he or she hit upon one of the strong arguments for synthetic keys instead of Natural keys – the multi-field primary key.  The problem occurs when you have one key that propagates through several tables.  The first table may only have 1 field as its natural PK, but then if it gets used in another table, that table may now need to have 2 (or more) fields concatenated to define the PK.  Very quickly you may have a table that has a PK in a table consisting of many (4, 5, 6+) columns to define it.  
With a synthetic key defined on every table (auto-generated number), you will have one, and only one numeric column for the table PK. So when it migrates as a FK into other tables, the join is only on 1 single numeric field. Row uniqueness can then be ensures by a surrogate key (alternate key) that is composed from as many columns as necessary to define uniqueness.
This architecture has several advantages:
The PK is numeric, therefore the B-Tree index is most efficient when doing joins.
No more than 1 column ever migrated from a table as a FK.
In some cases, multiple alternate keys can be defined on a table without system conflict.




 
Related Solutions
Keywords: The primary key
 
Loading Advertisement...
 
[+][-]02/26/06 02:28 AM, ID: 16048677Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Databases Miscellaneous
Tags: keys, natural, number
Sign Up Now!
Solution Provided By: Lowfatspread
Participating Experts: 4
Solution Grade: A
 
[+][-]02/25/06 06:12 PM, ID: 16047607Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/06 07:45 PM, ID: 16047820Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/06 09:55 PM, ID: 16048088Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/26/06 12:02 AM, ID: 16048328Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/26/06 12:03 AM, ID: 16048334Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/27/06 08:51 PM, ID: 16062206Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92