Professional Documents
Culture Documents
records in these two tables together. The use of foreign keys would be sufficient to do this,
and you would not need to create an intermediate relationship table for this purpose.
13-10. It is crucial that primary key values be stored accurately within the different tables of
the same database. For example, if a Salesperson table uses an employee number in the form
123-456 (with a dash in the middle), a Sales table should use this same format as a foreign
key (rather than, say, the number 123456 without a dash). If primary key values are not
entered consistently and accurately, the application will not be able to link file records
together, and therefore be unable to extract the information that a user requires. In other
words, the primary key will lose its integrity as a foreign key.
13-11. The seven major objects that you can create in Access are tables, forms, queries,
reports, pages, macros, and modules. However, there are yet further objects you can create
with Access. An important additional one is relationships.
Problems
13-12.
a) Definitions:
1) Field: A set of characters that describe or define a particular file entity, (e.g., the social
security number field of an employee in a payroll file).
2) Record: A set of data fields about one file entity, (e.g., the set of data fields that describe an
employee in a payroll file).
3) File: A collection of records about similar file entities, (e.g., a collection of employee
records in a payroll file).
b) 1) Database: A collection of data files that are shared by one or more accounting
applications. Typical database files include files containing the accounting data themselves
(e.g., payroll information), as well as a set of auxiliary files such as inquiry files and index
files that help manage this data.
2) Advantages:
a) Eliminates or reduces data redundancy
b) Reduces data conflicts that often result from files of duplicate information
c) Centralizes file information
d) Separates file data from the applications that use them, enabling the application to focus on
its tasks rather than the format of the data
e) Availability of excellent software for easily altering, inquiring, or reporting file data
3) Disadvantages:
13-15.
13-16. This problem requires students to log onto Stevie at www.aisvillage.com/stevie to
learn about database cardinalities.
13-17. There are several other database management systems available to users, including
MySQL, Oracle, FoxPro, Avanquest Database Professional, Microsoft SA SQL, Filemaker
Pro 7, Eltron Card Database, and IBM DB2.
Here are some characteristics of data fields for the Customer Table of Figure 13-6:
Data field
Data type
Size
Customer Number
Text
4
Last Name
Text
30
First Name
Text
20
Street Address
Text
30
City
Text
20
State Abbreviation
Text
2
Zip Code
Numeric
5
Credit Limit
Numeric
7 (long integer)
As shown here, it would be better to use separate fields for the customers first and last
names. This will enable the system so search for a customer by either first or last name
separately.
13-19. The different data types available in Access include: Text, Memo, Number, Data/Time,
Currency, AutoNumber, and Yes/No. You can also create hyperlinks and OLE objects. The
types of numbers you can create in Access include byte, Integer, Long Integer, Single,
Double, ReplicationID, and Decimal.
13-20. This problem requires students to create their own Salesperson table, using the
information provided in Figure 13-6.