M
MichiganMan
I am trying to set up a database for a class, and it needs to be 3rd
Normal form. Here were my two examples:
BOOK (ISBN_NUM, BOOK_NAME)
AUTHOR (AUTH_NUM, AUTH_NAME, ISBN_NUM)
ADDRESS (AUTH_ADDRESS,AUTH_NAME)
CONTACT (AUTH_NAME, AUTH_PHONE, AUTH_EMAIL)
or
PROJECT (PROJECT_NUM, PROJECT_NAME, CUST_COMP)
EMPLOYEE (EMP_NUM, EMP_NAME, EMP_PAY, EMP_TYPE, EMP_PHONE)
SHIFT (EMP_SHIFT, EMP_NUM)
CUSTOMER (CUST_COMP, CUST_PHONE)
The first field after the parenthesis is the key. (it wouldn't let me
underline on here).
The teacher wrote back and stated "in the first example In the AUTHOR
table he didn't understand why do I have ISBN_NUM in that table? Is
that what book the Author wrote? If so what if the Author wrote two
books?"
"Also what is ADDRESS and CONTACT tables used for?"
I am thinking I am just going to go with the second example, my
question is, is this 3NF? Can anyone help me with what might be another
table I could use for the first example, or could provide me with other
examples that I might find the answer myself?
I appreciate any help!!
Normal form. Here were my two examples:
BOOK (ISBN_NUM, BOOK_NAME)
AUTHOR (AUTH_NUM, AUTH_NAME, ISBN_NUM)
ADDRESS (AUTH_ADDRESS,AUTH_NAME)
CONTACT (AUTH_NAME, AUTH_PHONE, AUTH_EMAIL)
or
PROJECT (PROJECT_NUM, PROJECT_NAME, CUST_COMP)
EMPLOYEE (EMP_NUM, EMP_NAME, EMP_PAY, EMP_TYPE, EMP_PHONE)
SHIFT (EMP_SHIFT, EMP_NUM)
CUSTOMER (CUST_COMP, CUST_PHONE)
The first field after the parenthesis is the key. (it wouldn't let me
underline on here).
The teacher wrote back and stated "in the first example In the AUTHOR
table he didn't understand why do I have ISBN_NUM in that table? Is
that what book the Author wrote? If so what if the Author wrote two
books?"
"Also what is ADDRESS and CONTACT tables used for?"
I am thinking I am just going to go with the second example, my
question is, is this 3NF? Can anyone help me with what might be another
table I could use for the first example, or could provide me with other
examples that I might find the answer myself?
I appreciate any help!!