Deck 7: Database Administration

Full screen (f)
exit full mode
Question
The defining query can be any transaction.
Use Space or
up arrow
down arrow
to flip the card.
Question
A view cannot involve statistics.
Question
When you create a view, you cannot assign column names that are different from those in the base table .
Question
You cannot delete a row from a view.
Question
A view can join two or more tables.
Question
Most database management systems support the creation of views.
Question
With a view, the display of data can be customized to meet each user's needs.
Question
If the database structure changes, the user cannot access and use the view.
Question
Views provide a measure of security.
Question
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.
Question
To create a view definition, use the DEFINE VIEW command.
Question
MySQL version 4.1 supports views.
Question
An index makes certain types of retrieval more efficient.
Question
The DROP VIEW command removes the tables and data on which the view is based.
Question
The clause WITH GRANT OPTION is meaningful as part of a REVOKE command.
Question
A view is a derived table.
Question
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.
Question
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.
Question
Views provide data validation.
Question
The existing, permanent tables in a relational database are called stable tables.
Question
The GRANT command to indicate that a user has all privileges includes the FULL privilege.
Question
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
Question
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
Question
MySQL version 5.0 provides support for views.
Question
The types of constraints supported in MySQL are ____.

A)primary keys
B)foreign keys
C)legal values
D)All of the above
Question
When you specify a foreign key, the table containing the foreign key is the parent.
Question
The DBMS provides integrity administration, the process of specifying integrity constraints for a database that the DBMS will enforce.
Question
The defining query for a view can be any valid SQL query.
Question
Which of the following commands lists all the privileges granted to a user?

A)SHOW GRANTS
B)SHOW PRIVILEGES
C)SHOW USERS
D)SHOW SECURITY
Question
To add a row to your view, simply add a row to each underlying derived table.
Question
You can only specify a primary key when you first create a table.
Question
You can create and maintain an index for any row in any table.
Question
An auxiliary key is a column in one table whose values match the primary key in another table.
Question
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
Question
When you specify a foreign key, the table referenced by the foreign key is the ____.

A)super
B)sibling
C)parent
D)child
Question
Columns that are not included in the view are not accessible to the view's user.
Question
The DROP VIEW command removes only a view definition.
Question
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
Question
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
Question
When you specify a foreign key, the table referenced by the foreign key is the parent table.
Question
The main mechanism for providing access to a database is the ____ command.

A)PERMIT
B)ACCESS
C)GRANT
D)REVOKE
Question
Which of the following commands deletes an index?

A)DELETE INDEX
B)REMOVE INDEX
C)UNINDEX
D)DROP INDEX
Question
A(n)____________________ is an application program's or an individual user's picture of the database.
Question
The system catalog is also called the ____.

A)system database
B)data dictionary
C)master data table
D)transaction database
Question
To create a view definition, use the ____________________ command.
Question
In general, views that involve joins of ____________________ tables can cause problems at update.
Question
A view is defined by creating a defining ____________________, which indicates the rows and columns to include in the view.
Question
A(n)____ is an application program's or an individual user's picture of the database.

A)transaction
B)view
C)catalog
D)index
Question
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
Question
The privilege ____ can be granted to change the table structure.

A)WRITE
B)UPDATE
C)ALTER
D)MODIFY
Question
The privilege ____ can be granted to change data.

A)WRITE
B)UPDATE
C)ALTER
D)READ AND WRITE
Question
The ____ command lists all tables in the default database.

A)SHOW TABLES
B)DISPLAY TABLES
C)VIEW TABLES
D)LIST TABLES
Question
The database administrator uses the ____ command to revoke privileges from users.

A)DROP
B)REMOVE
C)REVOKE
D)CANCEL
Question
To list all the indexes associated with a table, use the ____ command.

A)SHOW INDEX
B)VIEW INDEX
C)LIST INDEX
D)DISPLAY INDEX
Question
Which of the following commands deletes a view?

A)DELETE VIEW
B)DROP VIEW
C)REVOKE VIEW
D)REMOVE VIEW
Question
A(n)____________________ subset view consists of a subset of the rows and columns in some base table.
Question
The privilege ____ can be granted to retrieve data.

A)SELECT
B)UPDATE
C)RETRIEVE
D)READ
Question
When a view is no longer needed, you can remove it using the ____________________ command.
Question
The process of managing a database is called database ____________________.
Question
The ____________________ command lists all the columns in a given table.
Question
Explain what happens when you create a query that involves a view.
Question
The command used to delete an index is ____________________.
Question
To add a primary key after creating a table, you can use the ____________________ clause of the ALTER TABLE command.
Question
The database administrator uses the ____________________ command to revoke privileges from users.
Question
The main mechanism for providing access to a database is the ____________________ command.
Question
If the user needs to be able to pass the privilege to other users, the GRANT command must include the ____________________ clause.
Question
Information about tables in the database is kept in the system ____________________.
Question
To ensure the uniqueness of values in a non-primary key column, you can create a unique index by using the ____________________ command.
Question
What are the benefits of using views?
Question
____________________ is the prevention of unauthorized access to a database.
Question
The command used to create an index is ____________________.
Question
What are the disadvantages of using an index?
Question
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 ____________________.
Question
You can create and use a(n)____________________ to speed up the searching process significantly.
Question
An integrity ____________________ is a rule for the data in the database.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/75
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 7: Database Administration
1
The defining query can be any transaction.
False
2
A view cannot involve statistics.
False
3
When you create a view, you cannot assign column names that are different from those in the base table .
False
4
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
5
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
6
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
7
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
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
Views provide a measure of security.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
10
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
11
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
12
MySQL version 4.1 supports views.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
13
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
14
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
15
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
16
A view is a derived table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
17
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
18
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
19
Views provide data validation.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
20
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
21
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
22
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
23
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
24
MySQL version 5.0 provides support for views.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
25
The types of constraints supported in MySQL are ____.

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
26
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
27
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
28
The defining query for a view can be any valid SQL query.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following commands lists all the privileges granted to a user?

A)SHOW GRANTS
B)SHOW PRIVILEGES
C)SHOW USERS
D)SHOW SECURITY
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
30
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
31
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
32
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
33
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
34
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
35
When you specify a foreign key, the table referenced by the foreign key is the ____.

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
36
Columns that are not included in the view are not accessible to the view's user.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
37
The DROP VIEW command removes only a view definition.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
38
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
39
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
40
When you specify a foreign key, the table referenced by the foreign key is the parent table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
41
The main mechanism for providing access to a database is the ____ command.

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
42
Which of the following commands deletes an 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
43
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
44
The system catalog is also called the ____.

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
45
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
46
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
47
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
48
A(n)____ is an application program's or an individual user's picture of the database.

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
49
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
50
The privilege ____ can be granted to change the table structure.

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
51
The privilege ____ can be granted to change data.

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
52
The ____ command lists all tables in the default database.

A)SHOW TABLES
B)DISPLAY TABLES
C)VIEW TABLES
D)LIST TABLES
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
53
The database administrator uses the ____ command to revoke privileges from users.

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
54
To list all the indexes associated with a table, use the ____ command.

A)SHOW INDEX
B)VIEW INDEX
C)LIST INDEX
D)DISPLAY INDEX
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following commands deletes a view?

A)DELETE VIEW
B)DROP VIEW
C)REVOKE VIEW
D)REMOVE VIEW
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
56
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
57
The privilege ____ can be granted to retrieve data.

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
58
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
59
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
60
The ____________________ command lists all the columns in a given table.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
61
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
62
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
63
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
64
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
65
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
66
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
67
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
68
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
69
What are the benefits of using views?
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
70
____________________ 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
71
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
72
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
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
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
75
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
locked card icon
Unlock Deck
Unlock for access to all 75 flashcards in this deck.