Concepts of Database Management 8th Edition Pratt Test Bank 1
Concepts of Database Management 8th Edition Pratt Test Bank 1
Concepts of Database Management 8th Edition Pratt Test Bank 1
2. An individual can use a view to create reports, charts, and other objects that show database data.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 115
4. To create a view in Access, you simply create and then save a query.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 117
6. One advantage of a view is that different users can view the same data in different ways.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 122
7. Indexes can increase the efficiency with which data is retrieved from the database.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 122
8. When you create an index whose key has a single field, you have created what is called a single-column index.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 125
9. The command DEL INDEX CustList; would remove the index named CustList.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 126
10. The following command will enable Jones to retrieve data from the Customer table, but not to take any other
action: GRANT SELECT ON Customer Jones ;
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 126
11. Referential integrity is specified using the FOREIGN KEY clause in the SELECT command.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 129
12. Legal-values integrity is the property that states that no record can exist in the database with a value in the field other
Cengage Learning Testing, Powered by Cognero Page 2
Chapter 4: The Relational Model 3: Advanced Topics
than one of the legal values.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 131
13. Information about tables in the database is kept in the system catalog.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 136
Multiple Choice
16. The ____ command will create an application program's or individual user's picture of the database.
a. CREATE INDEX
b. SELECT INDEX
c. SELECT VIEW
d. CREATE VIEW
ANSWER: d
POINTS: 1
REFERENCES: 116
17. A row-and-column subset ____ consists of a subset of the rows and columns in some individual table.
a. view
b. trigger
c. index
d. catalog
ANSWER: a
Cengage Learning Testing, Powered by Cognero Page 3
Chapter 4: The Relational Model 3: Advanced Topics
POINTS: 1
REFERENCES: 119
18. To create an index named RepBal with the keys RepNum and Balance and with the balances listed in descending
order, the command is ____.
a. CREATE INDEX RepBal ON Customer (RepNum, Balance) ;
b. CREATE INDEX RepBal Customer (RepNum DESC) ;
c. CREATE INDEX ON Customer (RepNum, Balance ASC) ;
d. CREATE INDEX RepBal ON Customer (RepNum, Balance DESC) ;
ANSWER: d
POINTS: 1
REFERENCES: 125
19. The ____ statement will take away user privileges to the database.
a. SELECT
b. INDEX
c. DEL
d. REVOKE
ANSWER: d
POINTS: 1
REFERENCES: 127
20. In Access, a key symbol appears in the row selector of the field that is the ____ key.
a. index
b. catalog
c. Foreign
d. Primary
ANSWER: d
POINTS: 1
REFERENCES: 127
21. To create the primary key clause for the Customer table on the CustomerNum field, the correct statement is ____.
a. PRIMARY KEY (CustomerNum)
b. PRIMARY KEY (Customer, CustomerNum)
c. KEY (CustomerNum)
d. PRIMARY (CustomerNum)
ANSWER: a
POINTS: 1
REFERENCES: 127
22. To create the primary key clause for the OrderLine table on the OrderNum and ItemNum fields, the correct statement
is ____.
a. PRIMARY KEY (OrderLine, OrderNum, ItemNum)
b. KEY (OrderNum, ItemNum)
c. PRIMARY KEY (OrderNum, ItemNum)
Cengage Learning Testing, Powered by Cognero Page 4
Chapter 4: The Relational Model 3: Advanced Topics
23. Essentially, setting the value in a given field to ____ is similar to not entering a value in it at all.
a. N/A
b. nil
c. null
d. 0
ANSWER: c
POINTS: 1
REFERENCES: 129
24. Which of the following statement fragments will only allow a CreditLimit of $5,000, $7,500, or $15,000?
a. (CreditLimit IN (5000, 7500, 15000))
b. CHECK ((5000, 7500, 15000))
c. CHECK (CreditLimit LIKE (5000, 7500, 15000))
d. CHECK (CreditLimit IN (5000, 7500, 15000))
ANSWER: d
POINTS: 1
REFERENCES: 132
26. In SQL, you use the CHECK clause to enforce ____ integrity.
a. referential
b. legal-values
c. entity
d. catalog
ANSWER: b
POINTS: 1
REFERENCES: 132
27. To insert a new field in a table, the ____ keyword should be used with the ALTER TABLE command.
a. INSERT
b. ADD
c. INCLUDE
Cengage Learning Testing, Powered by Cognero Page 5
Chapter 4: The Relational Model 3: Advanced Topics
d. ALTER
ANSWER: b
POINTS: 1
REFERENCES: 132
28. The SQL command for deleting the Storehouse field from the Item table is ____.
a. ALTER TABLE Item DELETE Storehouse ;
b. ALTER TABLE Item DROP COLUMN Storehouse ;
c. ALTER Item DELETE Storehouse ;
d. ALTER TABLE DELETE Storehouse ;
ANSWER: b
POINTS: 1
REFERENCES: 134
29. The statement, ____, removes the table Smaller from a DBMS.
a. DELETE TABLE Smaller ;
b. DROP TABLE Smaller ;
c. REMOVE TABLE Smaller ;
d. RID TABLE Smaller ;
ANSWER: b
POINTS: 1
REFERENCES: 135
30. In a client/server system, the database resides on a computer called the ____.
a. index
b. documenter
c. server
d. client
ANSWER: c
POINTS: 1
REFERENCES: 138
32. If you anticipate running a particular query often, you can improve overall performance by saving the query in a
special file called a(n) ____.
a. index
b. stored procedure
Cengage Learning Testing, Powered by Cognero Page 6
Chapter 4: The Relational Model 3: Advanced Topics
c. trigger
d. view
ANSWER: b
POINTS: 1
REFERENCES: 138
33. A(n) ____ is a computer that is connected to a network and has access through the server to the database.
a. client
b. view
c. index
d. trigger
ANSWER: a
POINTS: 1
REFERENCES: 138
34. A(n) ____ is an action that occurs automatically in response to an associated database operation such as an INSERT,
UPDATE, or DELETE command.
a. stored procedure
b. trigger
c. view
d. index
ANSWER: b
POINTS: 1
REFERENCES: 138
Completion
36. Within relational model systems on both mainframes and personal computers, the main mechanism for increasing the
efficiency with which data is retrieved from the database is the ____________________.
ANSWER: index
POINTS: 1
REFERENCES: 122
37. The field or combination of fields on which an index is built is called the ____________________ key.
ANSWER: index
POINTS: 1
REFERENCES: 124
38. A(n) ____________________ index is an index with more than one key field.
ANSWER: multiple-field
multiple field
multiple-column
multiple column
POINTS: 1
REFERENCES: 125
39. Within an organization, the ____________________ determines the types of access various users can have to the
database.
ANSWER: database administrator
DBA
POINTS: 1
REFERENCES: 126
41. The type of field for which you should never allow nulls is the ____________________.
ANSWER: primary key
POINTS: 1
REFERENCES: 127
42. In Access, you can restrict the legal values accepted by a field by entering an appropriate ____________________
that data entered in the field must follow.
ANSWER: validation rule
POINTS: 1
REFERENCES: 132
43. In a system catalog, the ____________________ table contains information about the tables known to SQL.
ANSWER: Systables
POINTS: 1
REFERENCES: 136
44. Access has a tool called the ____________________, which allows you to easily print detailed documentation
concerning any table, query, report, form, or other object in the database.
ANSWER: Documenter
POINTS: 1
REFERENCES: 138
45. In Access, a(n) ____________________ enables you to add logic to table events such as adding, changing, or deleting
data
ANSWER: data macro
Cengage Learning Testing, Powered by Cognero Page 8
Chapter 4: The Relational Model 3: Advanced Topics
POINTS: 1
REFERENCES: 140
Essay
46. What are the advantages of having views only contain the fields required by a given user?
ANSWER: This practice has two advantages. First, because the view will, in all probability, contain fewer
fields than the overall database and the view is conceptually a single table, rather than a
collection of tables, it greatly simplifies the user’s perception of the database. Second, views
provide a measure of security. Fields that are not included in the view are not accessible to the
view’s user. Likewise, rows that are not included in the view are not accessible.
POINTS: 1
REFERENCES: 122
47. Explain what is meant by a null value. Is a null value the same as a value of zero?
ANSWER: Essentially, setting the value in a given field to null is similar to not entering a value in the field at all.
Nulls are used when a value is missing, unknown, or inapplicable. It is not the same as a blank or zero
value, both of which are actual values. For example, a value of zero in the Balance field for a particular
customer indicates that the customer has a zero balance. A value of null in a customer’s Balance field, on
the other hand, indicates that, for whatever reason, the customer’s balance is unknown.
POINTS: 1
REFERENCES: 127
48. What is the difference between entity integrity and referential integrity?
ANSWER: Entity integrity is the rule that no field that is part of the primary key may accept null values.
Entity integrity guarantees that each record will indeed have its own identity. In other words,
preventing the primary key from accepting null values ensures that you can distinguish one
record from another. Referential integrity is the rule that if table A contains a foreign key that
matches the primary key of table B, the values of this foreign key must either match the value of
the primary key for some row in table B, or be null.
POINTS: 1
REFERENCES: 127
129
50. Discuss what you can do if you need to change a table’s structure in ways that are beyond the capabilities of
your DBMS.
ANSWER: In some cases, you might need to change a table’s structure in ways that are beyond the
capabilities of your DBMS. In these situations, you can use the CREATE TABLE command to
describe the new table, and then insert values into it using the INSERT command combined
with an appropriate SELECT clause. If you are using a version of SQL that supports the
SELECT INTO command, as Access does, you can use it to create the new table in a single
operation.
POINTS: 1
REFERENCES: 135