Chapter 03 Review Questions
Chapter 03 Review Questions
1. Table: is a two dimensional structure composed of rows and columns. Database serves as a
storage and manages both end user data and Meta data.
2. Entity integrity in databases is a condition where the rows in all of the tables can be uniquely
identified using the primary key of its corresponding table.
Entity integrity describes a condition in which all tuples with a table are uniquely identified
by their primary key. The unique value requirement prohibits a null primary key value,
because nulls are not unique.
Referential integrity describes a condition in which a foreign key value has a match in the
corresponding table or in which the foreign key value is null. The null foreign key value
makes it possible not to have a corresponding, but the matching requirement on values that
are not null make it impossible to have an invalid value.
3. Having an entity integrity in your database is important because you can reference every
row in a table and searching for a specific row will always give you right results. Failure in
getting the correct data will only result in confusion and wrong decision making.
Entity integrity is important because it means that a proper search for an existing tuple will
always be successful and the failure to find a match on a row search will always mean that
the row for which the search is conducted does not exist in that table.
Referential integrity is important because its existence ensure that it will be impossible to
assign a non-existing foreign key value to a table. For example, the referential integrity
enforcement in a SALESREP is assigned to CUSTOMER relationship means that it will be
possible for a customer to not have a sales rep assigned to him or her but it will be
impossible to assign non existing sales rep to a customer.
Referential integrity is also important because it ensures that only a valid foreign key can be
assigned to a table. You cannot add an invalid value to the related table which eliminates
possible data entry errors that you might make.
4.
a) They should have the same number of attributes
b) The corresponding columns must share the same or compatible domains
5.
a) Product
b) Join
c) Divide
d) Select
e) Project
6.
a) It records the design decisions about tables and their structures.
b) Because it contains metadata relating to the datatypes used and sizes as well has the
relations in the database.
7. An entity set contains two hundred tuples with each record consisting of nine attributes.
8.