Question

In: Computer Science

5.5. Why do we designate one of the candidate keys of a relation to be the...

5.5. Why do we designate one of the candidate keys of a relation to be the primary
key?
5.6. Discuss the characteristics of relations that make them different from ordinary
tables and files.
5.7. Discuss the various reasons that lead to the occurrence of NULL values in
relations.

Solutions

Expert Solution

5.5. A relation schema having more than one key are called candidate keys. One of the candidate key is called primary key of the relation since it becomes easier to handle databases when there is a single distinct key for a particular relation instead of having more than one keys. Primary key is generally a single attribute or a smaller number of attributes. Primary key is a candidate key which is used to identify tuples in a relation when a relation schema has several candidate keys. We designate one of the candidate key of a relation to be a primary key because that primary key is use for any foreign key references.Entity integrity constraint.

5.6. Tables and files have some particular order but relations don’t.Ordering of tuples in a Relation: The tuples are not considered to be ordered, even though they appear to be in the tabular form. - Ordering of attributes in a relation schema R and of values within each tuples: We consider the attributes in R  and the values to be ordered. Values in a tuple: All values are considered to be atomic or indivisible. A special null value is used to represent values that are unknown or inapplicable to certain tuples.

5.7. The desired reasons that lead to the occurrence of null values in relations are 1.When value of an attribute is not applicable for a tuple. it can be marked as NULL. 2. When value for an attribute unknown for a tuple, it can be marked as NULL.


Related Solutions

-What are Serial dilutions? how to do one, why we do one IN THE LAB and...
-What are Serial dilutions? how to do one, why we do one IN THE LAB and the proper procedure. -EXPLAIN what a titer is and how to determine it. -How to determine the concentration based on the dilution.
Normalize the following relations. Show possible candidate/primary keys and the functional dependencies. Explain the normal form...
Normalize the following relations. Show possible candidate/primary keys and the functional dependencies. Explain the normal form in which the relation is currently in (based on the sample data) and how do you break the relations to get 3rd Normal Form. Show the new relations obtained after normalization and underline the candidate/primary key in each new relation and italic the foreign key. Relation 1: COLLEGE PARKING TICKET (STID, LName, FName, PhoneNo, StateLic, LicNo, Ticket#, Date, Code, Fine) (Illustrated with sample data)...
why do Public Relation professionals use emotional appeals?
why do Public Relation professionals use emotional appeals?
Give one reason why do we do not transfer all risks by using insurance.
Give one reason why do we do not transfer all risks by using insurance.
Why do we exist?
Why do we exist?
Why do we need oxygen? Select one: a. It is the final electron acceptor in the...
Why do we need oxygen? Select one: a. It is the final electron acceptor in the electron transport chain b. It is needed to change the blood's pH c. It activates pepsinogen into pepsin d. Bacteria require it to break down plant products in large intestine e. It is needed for glycolysis to occur
do you agree that we oftern do not know why we do what we do? Also...
do you agree that we oftern do not know why we do what we do? Also explain that to what extent our preconception control our interpreatations and memories
Why do we include a moisture barrier on exterior walls and why do we put it...
Why do we include a moisture barrier on exterior walls and why do we put it between the sheathing and the siding of the wall?
Why do we have introns and what is the purpose of them? Why do we waste...
Why do we have introns and what is the purpose of them? Why do we waste energy making introns? The question may be broad but it's something our professor asked us. Thank you.
hat you do with your money that you designate for investing is important because what do...
hat you do with your money that you designate for investing is important because what do you have some degree of risk, the possibility of losing it. The markets reached an all time high January, 2018. Where is the market today (no need to answer that for the assignment) Problems below: 1. What is the difference between savings and investing? What are you doing right now, saving or investing? 2. Explain the difference between a primary and secondary market. Give...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT