You are on page 1of 6

1

Assignment: Problem Set-Wk2

Md Maruf Hossain Chowdhury Joy

International American University

MIS 560 - Database Management Systems

Professor: Prasanth Kalakota

Date:5/15/2023
2

Chapter 4

Problems 9:

Crow’s Foot notation ERD to support the following business operations


3

Problem 17:

The primary key and the foreign key of the table given below are:

Table Name Primary_Key Foreign_Key

Truck Truck_Num Base_code, Type_code

Base Base_Code none

Type Type_Code none

Problem 18:

Yes, these forms show the integrity of the machine. Equipment Integrity Statement
duplicated data. It also ensures that the primary key of each record matches the identity of the
table is unique and cannot be empty or null.
4

Problem 19:

No, these tables do not have referential integrity.


Table TRUCK shows referential integrity. Ensuring referential integrity
Foreign keys must always reference an existing primary key or contain null values. foreign
A key in the TRUCK table points to an existing primary key in the TYPE table.

Tables BASE and TYPE have no foreign key values.

Here the BASE and TYPE tables have no foreign key values. Hence the table
Do not show referential integrity.

Problem 20:

The candidate key for the TRUCK table is TRUCK_SERIAL_NUM.

Explain:
A candidate key is a column or set of columns that uniquely identifies a record
See additional data. A table can have multiple candidate keys. Candidate keys are
Unique and refers to the primary key. Because TRUCK_NUM is the primary key of TRUCK
table, TRUCK_SERIAL_NUM can be the primary key. So that may be the key to the candidate.
So the candidate key for the TRUCK table is TRUCK_SERIAL_NUM.
5

Problem 21:

A superkey is a set of attributes of a table. It is used to uniquely identify a string. table


Multiple superkeys can be used. Secondary keys are non-unique keys. secondary key
Multiple records can be referenced.

The following table lists the superkeys and secondary keys for each table.
6

Problem 22:

The ERD diagram for this database is shown below:

You might also like