Professional Documents
Culture Documents
Grey Rooming House Print This
Grey Rooming House Print This
Grey Rooming House Print This
How to Normalize
Grey’s Rooming House
cust_id custfname custlname custadd custstreet custcity custstate custzip custphone roomno roomtype bathroom (y/n) price date_in date_out custpaydate payamount
Assignment:
• Create the 1NF table in graphic or list form.
• You may do so on a piece of paper. You do not have to submit it. Don’t worry if you don’t’
get it correct, it takes a lot of practice!
• Do NOT click to the next slide until you have completed the 1NF table
cust_id custfname custlname custadd custstreet custcity custstate custzip custphone roomno roomtype bathroom (y/n) price date_in date_out custpaydate payamount
Note: cust_id, roomno, date_in, and custpaydate do not have any arrows pointing in at them
Assignment:
• Create the 2NF tables in graphic or list form.
• You may do so on a piece of paper. You do not have to submit it. Don’t worry if
you don’t’ get it correct, it takes a lot of practice!
• Do NOT click to the next slide until you have completed the 2NF tables
Assignment:
• Create the 3NF tables in graphic or list form.
• You may do so on a piece of paper. You do not have to submit it. Don’t worry if you don’t’ get
it correct, it takes a lot of practice!
• Do NOT click to the next slide until you have completed the 3NF tables
• Name the tables something that describes the attributes. If the key attributes consist of two or
more attributes that individually are foreign keys to another table then the table is a composite
relationship, otherwise the table is an entity.
• You may do so on a piece of paper. You do not have to submit it. Don’t worry if you don’t’ get it correct, it
takes a lot of practice!
• Do NOT click to the next slide until you have named and identified the tables
We know that Rent is a composite relationship because it meets BOTH rules: 1) more
than ONE key attribute 2) At least two are primary keys in other tables.
Why is BILL not a CR?
Do NOT click to the next slide until you have named and identified the
tables
m 1
BILL PRICE
BILL PRICE
cust_id
roomtype
custpaydate
price
payamount
custstreet int
PRICE
custcity int
PK roomtype int
custstate int
price int
cuszip int
custphone int
BILL
PK cus_id int
PK cuspaydate int
payamount int
• Great Job!!