













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














A Guide to SQL, Ninth Edition Solutions 2 - 1
A Guide to SQL, Ninth Edition Solutions 2 - 2 RESERVATION table is the RESERVATION_ID column. The primary key of the TRIP_GUIDES table is the combination of the TRIP_ID and GUIDE_NUM columns.
A Guide to SQL, Ninth Edition Solutions 2 - 4 ITEM (ITEM_NUM, DESCRIPTION, ON_HAND, CATEGORY, STOREHOUSE, PRICE) Relationships: There are one-to-many relationships from REP to CUSTOMER_REP, CUSTOMER to CUSTOMER_REP, CUSTOMER_REP to ORDERS, ORDERS to ORDER_LINE, and ITEM to ORDER_LINE. Entity-Relationship diagram: ( NOTE : Your rectangles may be in different positions as long as they are connected by the same arrows.)
A Guide to SQL, Ninth Edition Solutions 2 - 5
A Guide to SQL, Ninth Edition Solutions 2 - 7 TripGuides (TripID, GuideNum, TripName,) Conversion to 2NF: Trip (TripID, TripName) TripGuides (TripID, GuideNum) 2NF but not 3NF: Reservation (ReservationID, TripID, OwnerNum, LastName, FirstName) Conversion to 3NF: Owner (OwnerNum, LastName, FirstName) Reservation (ReservationID, TripID, OwnerNum)
A Guide to SQL, Ninth Edition Solutions 2 - 8 3NF LOCATION (LOCATION_NUM, LOCATION_NAME) CONDO_UNIT (LOCATION_NUM, UNIT_NUM, SQR_FT, BDRMS, BATHS, CONDO_FEE)
A Guide to SQL, Ninth Edition Page 2 - 1 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use.
Overview Objectives Teaching Tips Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms
A Guide to SQL, Ninth Edition Page 2 - 2 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use.
Overview In this chapter, students learn about database design. Students examine the important concepts related to databases. They learn how to identify tables and columns and how to identify the relationships between the tables. Students learn how to produce an appropriate database design for a given set of requirements. They examine the process of normalization, a process that identifies and fixes potential problems in a database design. Finally, students learn how to visually represent a database design. Chapter Objectives In this chapter, students learn about: What the terms entity , attribute , and relationship mean What the terms relation and relational database mean What functional dependencies are and how to identify when one column is functionally dependent of another What the term primary key means and how to identify primary keys in tables How to design a database to satisfy a set of requirements How to convert an unnormalized relation to first normal form How to convert tables from first normal form to second normal form How to convert tables from second normal form to third normal form How to create an entity-relationship diagram to represent the design of a database Teaching Tips
A Guide to SQL, Ninth Edition Page 2 - 4 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use.
A Guide to SQL, Ninth Edition Page 2 - 5 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use.
A Guide to SQL, Ninth Edition Page 2 - 7 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use. Tip Use Figure 1- 1 , which shows a sample order for TAL Distributors. Database Design Process Example
A Guide to SQL, Ninth Edition Page 2 - 8 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use.
A Guide to SQL, Ninth Edition Page 2 - 10 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use.
A Guide to SQL, Ninth Edition Page 2 - 11 ©201 6 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- protected website for classroom use. Additional Resources