Ask Question
2 February, 04:59

Consider a relation about people in the United States, including their name, Social Security number, street address, city, state, ZIP code, area code, and phone number (7 digits). What FD's would you expect to hold? What are the keys for the relation? To answer this question, you need to know something about the way these numbers are assigned. For instance, can an area code straddle two states? Can a ZIP code straddle two area codes? Can two people have the same Social Security number? Can they have the same address or phone number?

+2
Answers (1)
  1. 2 February, 05:24
    0
    For constructing relational schema, consider the relation as:

    Data Attributes for USPeople: name, Social Security number (SSN), street address, city, state,

    ZIP code, area code, phone number

    1. Functional Dependency (FD):

    A functional dependency (FD) is a relationship between the primary key and non-key attributes of the relation. For finding FD, we need to know about the primary key (PK) which should be unique.

    Social Security number (SSN) is the only attribute that holds unique value for relation. R, attribute for any relation Y is functionally dependent on attribute X (usually the PK), if for every valid instance of X, that value of X uniquely determines the value of Y.

    Social Security number (PK) - >; name, street address, city, state, ZIP code, area code, phone number

    2. keys for the relation

    Primary key = Social Security Number (PK)

    Foreign key = Area code

    In the normalization process, we can separate address table (street address, city, state, ZIP code, area code)

    Can an area code straddle two states?

    Yes, it can straddle between two states; it might be in cities/regions that "lie" across two states. For example, Kansas City is in Missouri and Kansas. A lot of people share the same area code.

    Can a ZIP code straddle two area codes?

    Yes, it can straddle between two states; it might be in cities/regions that "lie" across two states.

    Can same Social Security number is allotted to two people?

    NO, everyone has a unique SSN number.

    Can peoples living together have the same address or phone number?

    Yes, people living in the same house share addresses or phone numbers.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Consider a relation about people in the United States, including their name, Social Security number, street address, city, state, ZIP code, ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers