Click here to Skip to main content
15,905,776 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello my technical frnds,

One interviewer asked me this questions that, Why we create masters in database?

I have answer this question but still I want to know yours opinion.

Thank you...
Posted
Updated 8-Oct-13 20:23pm
v2
Comments
Mike Meinz 8-Oct-13 18:45pm    
What do you mean by masters?
Are you talking about an academic degree?
Are you talking abut master-detail relationships for transaction data?
Please explain.

What is your answer?
Shobhana.n 9-Oct-13 2:01am    
Suppose,If I am doing a application of Employee and their salary processing structure. to maintain the records,I will create masters in database that is Employee table (that is Employee master),Salary table(that is salary master).
Mike Meinz 9-Oct-13 7:53am    
"Master" in this case refers to a table that is the primary or main table in a relation. Generally, a person, place or thing. Other tables relate to the master table. A Dependents table relates to the Employee table. An Invoice Line Item table related to the Invoice Table. An Order Line Item table relates to a Order table. The use of the terms Master and Detail originates with Electrical Accounting Machine (EAM)-based punched card applications.

The simple answer to the question "Why create Masters" is "to eliminate redundancy (duplication of data)."

1 solution

We create to achieve normalizations for RDBMS
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900