Filters
Question type

Study Flashcards

A(n) ____ table is a table that does not contain the primary key that a view uses to uniquely identify each record being displayed by the view.​


A) ​non key-preserved
B) ​key-preserved
C) ​primary
D) ​non primary-keyed

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

What is the definition of an inline view?​


A) ​It is a permanent database object that can be referenced by subsequent queries.
B) ​It is a view that retrieves data from one or more tables,and can contain functions and grouped data.
C) ​It is a temporary data source that exists only while a command is being executed.
D) ​It is a temporary pseudo column.

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

​The ____________________ keywords can be used to ensure data cannot be changed through the view.

Correct Answer

verifed

verified

Which statement is true about the view created with the following command? CREATE OR REPLACE VIEW outstanding AS SELECT customer#,order#,orderdate,shipdate FROM orders WHERE shipdate IS NULL WITH READ ONLY;


A) ​The order# of an order cannot be changed through the view.
B) ​The shipping date of an order cannot be changed through the view.
C) ​No DML operations are permitted through the view.
D) ​all of the above

E) A) and C)
F) All of the above

Correct Answer

verifed

verified

​How does a materialized view differ from the other types of views?

Correct Answer

verifed

verified

A materialized view allows you to store ...

View Answer

A(n)____________________ view can contain grouped data.​

Correct Answer

verifed

verified

​DML operations are not allowed on views that include the pseudo column ____________________

Correct Answer

verifed

verified

When a view includes columns from more than one table,updates can only be applied to the table that includes the primary key for the view.​

A) True
B) False

Correct Answer

verifed

verified

Rows cannot be added to a simple view.​

A) True
B) False

Correct Answer

verifed

verified

An inline view is used to create a(n)permanent table._________________________​

A) True
B) False

Correct Answer

verifed

verified

The WITH READ ONLY option can be used to prevent changes from being made to the data displayed by the view.​

A) True
B) False

Correct Answer

verifed

verified

​How do the following three types of views differ in terms of the data they can contain: simple view,complex view and inline view?

Correct Answer

verifed

verified

A simple view cannot reference data from...

View Answer

Rows cannot be deleted if the complex view was created with a(n)GROUP BY clause._________________________​

A) True
B) False

Correct Answer

verifed

verified

Rows can be updated through a simple view as long as the operation does not violate existing constraints and the view was created with the WITH READ ONLY option.​

A) True
B) False

Correct Answer

verifed

verified

Which statement is true about the view created with the following command? CREATE VIEW OR REPLACE outstanding AS SELECT customer#,order#,orderdate,shipdate FROM orders WHERE shipdate IS NULL;


A) ​The order# of an order can be changed through the view.
B) ​The shipping date of an order can be changed through the view.
C) ​A new order can be added through the view as long as no constraints on the underlying table are violated.
D) ​all of the above

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

Rows cannot be added to a table through a complex view that was created with the ORDER BY clause._________________________​

A) True
B) False

Correct Answer

verifed

verified

If a view was created with the WITH READ ONLY constraint,to remove the constraint you will need to ____.​


A) ​use the ALTER VIEW command
B) ​re-create the view without the option
C) ​rename the view
D) ​drop the option

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

Which of the following statements about performing DML operations on complex views is correct?​


A) ​DML operations cannot be performed on a non primary key-locked table
B) ​DML operations cannot be performed on a non key-preserved table.
C) ​DML operations can be performed if a view contains a group function or a GROUP BY clause.
D) ​none of the above

E) B) and D)
F) C) and D)

Correct Answer

verifed

verified

Which statement is true about the view created with the following command? CREATE VIEW outstanding AS SELECT customer#,order#,orderdate,shipdate FROM orders WHERE shipdate IS NULL WITH CHECK OPTION;


A) ​The order# of an order cannot be changed through the view.
B) ​The shipping date of an order cannot be changed through the view.
C) ​No DML operations are permitted through the view.
D) ​none of the above

E) A) and D)
F) A) and B)

Correct Answer

verifed

verified

The WITH CHECK OPTION can be used when a view is created to ensure that any DML operations performed on the view will not prevent the row from being accessible by the view at a later time._________________________​

A) True
B) False

Correct Answer

verifed

verified

Showing 101 - 120 of 133

Related Exams

Show Answer