Filters
Question type

Study Flashcards

In a business organization, the person or entire group of people charged with managing the database is known as the _____.


A) database analyst
B) developer
C) database administrator
D) programmer

Correct Answer

verifed

verified

Martine's database administrator has set up a view for her so that she can access the information she needs from the database. What will happen when new columns Martine does not need to see are added to the base tables used for Martine's view?


A) The new columns will appear in Martine's view.
B) The data independence provided by the view will be lost.
C) The administrator will have to change the view's defining query.
D) Martine can continue to use her view as usual.

Correct Answer

verifed

verified

When renaming columns for a view, you include the new column names in _____ following the name of the view.


A) single quotes
B) double quotes
C) parentheses
D) square brackets

Correct Answer

verifed

verified

An index makes certain types of retrieval more efficient.

Correct Answer

verifed

verified

Which command will allow user Thompson to remove rows from the CUSTOMER table?


A) GRANT DROP ON CUSTOMER TO THOMPSON;
B) GRANT THOMPSON REMOVE ON CUSTOMER;
C) SELECT* CUSTOMER GRANT THOMPSON DELETE;
D) GRANT DELETE ON CUSTOMER TO THOMPSON;

Correct Answer

verifed

verified

Which privilege can be granted to allow a user to retrieve data?


A) SELECT
B) UPDATE
C) RETRIEVE
D) READ

Correct Answer

verifed

verified

To ensure the uniqueness of values in a nonprimary key column, you can create an index using the _____.


A) CREATE UNIQUE INDEX command
B) CREATE NONPRIMARY INDEX command
C) CREATE INDEX command
D) CREATE ONLY INDEX command

Correct Answer

verifed

verified

Which of the following commands deletes an index?


A) DELETE INDEX
B) REMOVE INDEX
C) UNINDEX
D) DROP INDEX

Correct Answer

verifed

verified

What does this SQL command accomplish? ALTER TABLE PRODUCTS ADD CHECK (SIZE IN ('S', 'M', 'L', 'XL', 'XXL') ) ;


A) updates all values in the SIZE column
B) adds a parent-child constraint to the PRODUCTS table
C) establishes a foreign key for the PRODUCTS table
D) establishes legal values for the SIZE column

Correct Answer

verifed

verified

Explain what happens when you create a query that involves a view.

Correct Answer

verifed

verified

When you create a query that involves a ...

View Answer

Views can contain only the columns required by a given user. What two advantages are conferred by this aspect of views?


A) customization and data independence
B) simplicity and security
C) data independence and portability
D) performance and reliability

Correct Answer

verifed

verified

When users create, alter, or drop tables or create or drop indexes, the DBMS updates the system catalog automatically.

Correct Answer

verifed

verified

What are the disadvantages of using an index?

Correct Answer

verifed

verified

First, an index occupies disk space. Usi...

View Answer

What happens if Samantha, whose view of the database contains only a portion of the rows and columns of the base table, attempts to add a row to the table through her view?


A) Samantha's INSERT command will automatically be rejected.
B) Samantha could accidentally add a row with a duplicate primary key to the table.
C) If Samantha's INSERT command succeeds, the new row will contain several null values.
D) If all the columns in the base table accept nulls, Samantha's INSERT command will fail.

Correct Answer

verifed

verified

You can create and maintain an index on any row in any table.

Correct Answer

verifed

verified

Showing 21 - 35 of 35

Related Exams

Show Answer