A Guide to SQL, Ninth Edition Solutions 2-8
3NF
LOCATION (LOCATION_NUM, LOCATION_NAME)
2. Functional Dependencies:
CONDO_ID → LOCATION_NUM, UNIT_NUM, SQR_FT, BDRMS, BATHS,
CONDO_FEE, OWNER_NUM, LAST_NAME, FIRST_NAME
OWNER_NUM → LAST_NAME, FIRST_NAME
3. [Critical Thinking] Functional Dependencies
NOTE: The design assumes that the weekly rate can very with the rental agreement. If
students assume that the weekly rate is always the same then the rate would be stored
only in the CONDO_UNIT table. The design also assumes that both LOCATION_NUM
and CONDO_UNIT_NUM uniquely identify a given condo. This is different than the
way Solmaris database is designed for this text. As an alternative you can use the same
design for the CONDO_UNIT table as that shown in the text.
RENTER_NUM → FIRST_NAME, MID_INITIAL, LAST_NAME, ADDRESS,
CITY, STATE, POSTAL_CODE, PHONE_NUM, EMAIL
LOCATION_NUM → LOCATION_NAME, ADDRESS, CITY, STATE, POSTAL_CODE
LOCATION_NUM, CONDO_UNIT_NUM → SQR_FT, BEDRMS, BATHS,
MAX_PERSONS, WEEKLY_RATE
RENTER_NUM, LOCATION_NUM, CONDO_UNIT_NUM → START_DATE, END_DATE,
RENTAL_RATE
3 NF
RENTER (RENTER_NUM, FIRST_NAME, MID_INITIAL, LAST_NAME, ADDRESS,
CITY, STATE, POSTAL_CODE, PHONE_NUM, EMAIL)