Assignment
Assignment
2. The database in Figure 8.11 is composed of two tables. Use this figure to
answer questions 2.1 to 2.5.
1. Identify the primary key for each table.
Primary key for DIRECTOR table is DIRNUM.
Primary key for PLAY table is PLAYNO.
3. Define the following terms (you may need to use the Internet for some of
these):
4. The RRE Trucking Company database includes the three tables in Figure
8.12. Use Figure 8.12 to answer questions 4.1 to 4.5.
Foreign key:
Table TYPE no foreign key
Table BASE no foreign key
TABLE TRUCK foreign keys are BASENUM references
table BASE TYPENUM references table TYPE
5. Suppose you are using the database in Figure 8.13, composed of the two
tables. Use Figure 8.13 to answer questions 5.1 to 5.6.
1. Identify the primary key in each table.
Customer Table: CustID is primary key for the table as
the id for each customer will be unique.
Book Orders Table: OrderID is primary key for the
table as OrderID will be quique for each order stored
in the table
6. Looking at the student table in Figure 8.14, list all the possible candidate
keys. Why did you select these?
Nothing.
8. Identity all the kernels and dependent and characteristic entities in the
ERD.
Here attendance is the weak entity or table which has weak
relationships. Course and Instructor has the strong relationship.