Deck 7: Database Administration
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/75
Play
Full screen (f)
Deck 7: Database Administration
1
When you create a view, you cannot assign column names that are different from those in the base table.
False
2
Views provide a measure of security.
True
3
When you create a query that involves a view, SQL changes the query to one that selects data from the table(s) in the database that created the view.
True
4
The existing, permanent tables in a relational database are called stable tables.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
5
You can add rows to a view that includes calculations.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
6
You cannot delete a row from a view.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
7
To create a view in Access, create a query to define the view and then save the query object in the database.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
8
If the database structure changes, the user cannot access and use the view.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
9
With a view, the display of data can be customized to meet each user's needs.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
10
Views furnish a certain amount of security; if users are accessing the database through a view, they cannot access any data that is not included in the view.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
11
To add a row to your view, simply add a row to each underlying derived table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
12
Most database management systems support the creation of views.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
13
To create a view definition, use the DEFINE VIEW command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
14
If two base tables have the same primary key and the primary key is used as the join column, updating the database is a problem.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
15
A view is a derived table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
16
A view can join two or more tables.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
17
Views provide data validation.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
18
The DROP VIEW command removes the tables and data on which the view is based.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
19
The defining query can be any transaction.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
20
A view cannot involve statistics.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
21
Access does not support the DROP VIEW command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
22
The command to delete a view is ____.
A) DROP VIEW
B) DELETE VIEW
C) REMOVE VIEW
D) REVOKE VIEW
A) DROP VIEW
B) DELETE VIEW
C) REMOVE VIEW
D) REVOKE VIEW
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
23
You can create and maintain an index for any row in any table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
24
The correct command to allow user Thompson to delete rows in the CUSTOMER table would be: GRANT ____ ON CUSTOMER TO THOMPSON.
A) DROP
B) REMOVE
C) UPDATE
D) DELETE
A) DROP
B) REMOVE
C) UPDATE
D) DELETE
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
25
In a business organization, a person or an entire group known as the ____ is charged with managing the database.
A) database analyst
B) developer
C) database administrator
D) programmer
A) database analyst
B) developer
C) database administrator
D) programmer
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
26
You can only specify a primary key when you first create a table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
27
When you specify a foreign key, the table containing the foreign key is the parent.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
28
You use the LEGAL clause of the ALTER TABLE command to ensure that only legal values satisfying a particular condition are allowed in a given column.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
29
A(n) ____ is an application program's or an individual user's picture of the database.
A) transaction
B) view
C) catalog
D) index
A) transaction
B) view
C) catalog
D) index
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
30
The main mechanism for providing access to a database is the ____ command.
A) PERMIT
B) ACCESS
C) GRANT
D) REVOKE
A) PERMIT
B) ACCESS
C) GRANT
D) REVOKE
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
31
An auxiliary key is a column in one table whose values match the primary key in another table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
32
An index makes certain types of retrieval more efficient.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
33
Normally, when the database administrator grants a particular privilege to a user, the user cannot pass that privilege along to other users.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
34
The clause WITH GRANT OPTION is meaningful as part of a REVOKE command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
35
The DBMS provides integrity administration, the process of specifying integrity constraints for a database that the DBMS will enforce.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
36
The CREATE VIEW command includes the words CREATE VIEW, followed by the name of the view, the word ____, and then a query.
A) AC
B) SA
C) AS
D) IN
A) AC
B) SA
C) AS
D) IN
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
37
A view is updatable when it is derived from joining two base tables on the ____ of each table.
A) row-column
B) foreign key
C) primary key
D) index
A) row-column
B) foreign key
C) primary key
D) index
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
38
When the primary key contains more than one column, use commas to separate the column names.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
39
When renaming columns, you include the new column names in ____ following the name of the view.
A) single quotes
B) double quotes
C) parentheses
D) square brackets
A) single quotes
B) double quotes
C) parentheses
D) square brackets
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
40
The GRANT command to indicate that a user has all privileges includes the FULL privilege.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
41
A(n) ____________________ is an application program's or an individual user's picture of the database.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
42
In Oracle, the ____ table contains information about the tables known to SQL.
A) DBA_TABLES
B) SHOW_TABLES
C) ALL_TABLES
D) SP_TABLES
A) DBA_TABLES
B) SHOW_TABLES
C) ALL_TABLES
D) SP_TABLES
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
43
A(n) ____________________ subset view consists of a subset of the rows and columns in some base table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
44
A view is defined by creating a defining ____________________, which indicates the rows and columns to include in the view.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following commands deletes an index?
A) DELETE INDEX
B) REMOVE INDEX
C) UNINDEX
D) DROP INDEX
A) DELETE INDEX
B) REMOVE INDEX
C) UNINDEX
D) DROP INDEX
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
46
The database administrator uses the ____ command to revoke privileges from users.
A) DROP
B) REMOVE
C) REVOKE
D) CANCEL
A) DROP
B) REMOVE
C) REVOKE
D) CANCEL
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
47
____________________ is the prevention of unauthorized access to a database.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
48
To create a view definition, use the ____________________ command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
49
The privilege ____ can be granted to change data.
A) WRITE
B) UPDATE
C) ALTER
D) READ AND WRITE
A) WRITE
B) UPDATE
C) ALTER
D) READ AND WRITE
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
50
The process of managing a database is called database ____________________.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
51
The privilege ____ can be granted to retrieve data.
A) SELECT
B) UPDATE
C) RETRIEVE
D) READ
A) SELECT
B) UPDATE
C) RETRIEVE
D) READ
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
52
The system catalog is also called the ____.
A) system database
B) data dictionary
C) master data table
D) transaction database
A) system database
B) data dictionary
C) master data table
D) transaction database
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
53
The types of constraints supported in SQL are ____.
A) primary keys
B) foreign keys
C) legal values
D) All of the above
A) primary keys
B) foreign keys
C) legal values
D) All of the above
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
54
The privilege ____ can be granted to change the table structure.
A) WRITE
B) UPDATE
C) ALTER
D) MODIFY
A) WRITE
B) UPDATE
C) ALTER
D) MODIFY
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
55
When a view is no longer needed, you can remove it using the ____________________ command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
56
The general form for assigning a foreign key is ADD FOREIGN KEY, the column name(s) of the foreign key, the ____ clause, and then the table name that the foreign key must match.
A) WHERE
B) REFERENCES
C) FROM
D) IN
A) WHERE
B) REFERENCES
C) FROM
D) IN
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
57
In general, views that involve joins of ____________________ tables can cause problems at update.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
58
To ensure the uniqueness of values in a nonprimary key column, use the ____ command to create an index.
A) CREATE UNIQUE INDEX
B) CREATE NONPRIMARY INDEX
C) CREATE INDEX
D) CREATE ONLY INDEX
A) CREATE UNIQUE INDEX
B) CREATE NONPRIMARY INDEX
C) CREATE INDEX
D) CREATE ONLY INDEX
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
59
In Oracle, the ____ table contains information about the columns within tables.
A) SYSCOLUMNS
B) DBA_TAB_COLUMNS
C) COLUMNS
D) SHOW_COLUMNS
A) SYSCOLUMNS
B) DBA_TAB_COLUMNS
C) COLUMNS
D) SHOW_COLUMNS
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
60
When you specify a foreign key, the table referenced by the foreign key is the ____.
A) super
B) sibling
C) parent
D) child
A) super
B) sibling
C) parent
D) child
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
61
The GRANT command to indicate that all users can retrieve data using a SELECT command includes the word ____________________ rather than the specific name of a user.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
62
What are the benefits of using views?
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
63
The database administrator uses the ____________________ command to revoke privileges from users.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
64
Information about tables in the database is kept in the system ____________________.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
65
To add a primary key after creating a table, you can use the ____________________ clause of the ALTER TABLE command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
66
The command used to create an index is ____________________.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
67
If the user needs to be able to pass the privilege to other users, the GRANT command must include the ____________________ clause.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
68
An integrity ____________________ is a rule for the data in the database.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
69
You can create and use a(n) ____________________ to speed up the searching process significantly.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
70
Explain what happens when you create a query that involves a view.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
71
What are the disadvantages of using an index?
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
72
The command used to delete an index is ____________________.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
73
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 ____________________.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
74
To ensure the uniqueness of values in a non-primary key column, you can create a unique index by using the ____________________ command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
75
The main mechanism for providing access to a database is the ____________________ command.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck