SQL7

25 July 2022
4.7 (114 reviews)
51 test answers

Unlock all answers in this set

Unlock answers (47)
question
When you create a query that involves a view, the DBMS changes the query to one that selects data from the table(s) in the database that created the view.​ T/F
answer
True
question
The privilege ____ can be granted to retrieve data.​
answer
Select
question
Normally, when the database administrator grants a particular privilege to a user, the user cannot pass that privilege along to other users.​ T/F
answer
True
question
To create a view definition, use the DEFINE VIEW command.​ T/F
answer
False
question
The types of constraints supported in SQL are ____. a.primary keys b.All of the above c.legal values d.foreign keys
answer
All of above
question
A view cannot involve statistics.​ T/F
answer
False
question
When renaming columns, you include the new column names in ____ following the name of the view.​
answer
parentheses
question
In Oracle, the ____ table contains information about the columns within tables
answer
DBA_TAB_COLUMNS
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.​ T/F
answer
False
question
The system catalog is also called the ____.​
answer
data dictionary
question
A view can join two or more tables.​ T/F
answer
True
question
Most database management systems support the creation of views.​ T/F
answer
True
question
You can add rows to a view that includes calculations.​ T/F
answer
False
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.​
answer
References
question
The DROP VIEW command removes the tables and data on which the view is based.​ T/F
answer
False
question
The correct command to allow user Thompson to delete rows in the CUSTOMER table would be: GRANT ____ ON CUSTOMER TO THOMPSON.​
answer
Delete
question
The CREATE VIEW command includes the words CREATE VIEW, followed by the name of the view, the word ____, and then a query.​
answer
AS
question
The main mechanism for providing access to a database is the ____ command.​
answer
Grant
question
An auxiliary key is a column in one table whose values match the primary key in another table.​ T/F
answer
False
question
When you create a view, you cannot assign column names that are different from those in the base table.​T/F
answer
False
question
The GRANT command to indicate that a user has all privileges includes the FULL privilege.​ T/F
answer
False
question
A view is updatable when it is derived from joining two base tables on the ____ of each table.​
answer
primary key
question
To ensure the uniqueness of values in a nonprimary key column, use the ____ command to create an index.​
answer
CREATE UNIQUE INDEX
question
When the primary key contains more than one column, use commas to separate the column names.​ T/F
answer
True
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.​ T/F
answer
True
question
If the database structure changes, the user cannot access and use the view.​ T/F
answer
False
question
The existing, permanent tables in a relational database are called stable tables.​ T/F
answer
False
question
Views provide a measure of security.​ T/F
answer
True
question
An index makes certain types of retrieval more efficient.​ T/F
answer
True
question
To create a view in Access, create a query to define the view and then save the query object in the database.​ T/F
answer
True
question
Access does not support the DROP VIEW command.​ T/F
answer
True
question
In a business organization, a person or an entire group known as the ____ is charged with managing the database.​
answer
database administrator
question
In Oracle, the ____ table contains information about the tables known to SQL.​
answer
DBA_TABLES
question
When you specify a foreign key, the table containing the foreign key is the parent​ T/F
answer
False
question
When you specify a foreign key, the table referenced by the foreign key is the ____.
answer
Parent
question
The clause WITH GRANT OPTION is meaningful as part of a REVOKE command.​ T/F
answer
False
question
You can only specify a primary key when you first create a table. T/F​
answer
False
question
The defining query can be any transaction. T/F
answer
False
question
Which of the following commands deletes an index?​
answer
DROP INDEX
question
The command to delete a view is ____.​
answer
DROP VIEW
question
When users create, alter, or drop tables or create or drop indexes, the DBMS updates the system catalog automatically T/F
answer
True
question
The privilege ____ can be granted to change data.​
answer
UPDATE
question
A view that involves statistics calculated from one or more base tables is the easiest view when attempting to update data. T/F​
answer
False
question
You can create and maintain an index for any row in any table.​ T/F
answer
False
question
A view is a derived table.​ T/F
answer
True
question
The database administrator uses the ____ command to revoke privileges from users.​
answer
REVOKE
question
Views provide data validation.​ T/F
answer
False
question
With a view, the display of data can be customized to meet each user's needs.​ T/F
answer
True
question
The privilege ____ can be granted to change the table structure.​
answer
ALTER
question
A(n) ____ is an application program's or an individual user's picture of the database.​
answer
View
question
The defining query can be any transaction.​ T/F
answer
False