1.12 – Cite some examples of integrity constraints that you think can apply to the database
shown in Figure 1.2.
Answer:
We give a few constraints expressed in English. Following each constraint, we give its type
in the relational database terminology that will be covered in Chapter 6, for reference
purposes.
(a) The StudentNumber should be unique for each STUDENT record (key constraint).
(b) The CourseNumber should be unique for each COURSE record (key constraint).
1.13 – Give examples of systems in which it may make sense to use traditional file
processing instead of a database approach.
Answer:
2. Small single user application that does not require security (such as a customized
calculator or a personal address and phone book)
4. The students may think of others.
1.14 – Consider Figure 1.2.
a. If the name of the ‘CS’ (Computer Science) Department changes to ‘CSSE’ (Computer
Science and Software Engineering) Department and the corresponding prefix for the
course number also changes, identify the columns in the database that would need
to be updated.
b. Can you restructure the columns in COURSE, SECTION, and PREREQUISITE tables so
that only one column will need to be updated?
Answer: