Deck 13: Views

Full screen (f)
exit full mode
Question
An inline view is a temporary table that only lasts for the duration of the SELECT statement used to create it.​
Use Space or
up arrow
down arrow
to flip the card.
Question
A view can be modified using the MODIFY clause of the ALTER VIEW command.​
Question
Any DML operation can be performed on a simple view that was not created with the WITH READ ONLY option,unless it violates an existing constraint.​
Question
Column aliases can be used in the subquery to assign new column names to the columns contained in a view.​
Question
A simple view is based upon a subquery that references only one table and doesn't contain any group functions,expressions,or a GROUP BY clause.​
Question
The WITH READ ONLY option can be used to prevent changes from being made to the data displayed by the view.​
Question
A view name must be enclosed in single quotation marks if it is referenced in the FROM clause of a SELECT statement.​
Question
DML operations can be performed through a simple view even if the operation will violate constraints on the underlying table.​
Question
Views can be used to restrict a user's access to sensitive data.
Question
A view cannot be given the same name as another database object.​
Question
You cannot create a view if the underlying table does not exist at the time the view is created.​
Question
Views are database objects that store data.​
Question
A complex view cannot contain any group functions.​
Question
The column names used in the view must be the same names as the column names in the underlying table(s).​
Question
A complex view can retrieve data from more than one table.​
Question
Rows cannot be added to a simple view.​
Question
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.​
Question
​A view can be created to simplify issuing complex SQL queries.
Question
Views are not database objects.​
Question
A simple view cannot contain a simple arithmetic operation.​
Question
The WITHOUT UPDATE keywords prevent DML operations from being performed through a view._________________________​
Question
DML operations can be performed on a view created with the DISTINCT keyword.​
Question
A(n)existing view cannot be modified._________________________​
Question
An ORDER BY clause can be used to perform "TOP-N" analysis.​
Question
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._________________________​
Question
A view can be thought of as the result of a(n)stored query._________________________​
Question
A(n)view is a database object,but it does not actually store data._________________________​
Question
A(n)simple view can contain a GROUP BY clause._________________________​
Question
An inline view is used to create a(n)permanent table._________________________​
Question
Rows can be added through a complex view that is based upon grouped data.​
Question
The NOFORCE keyword can be used to create a view based upon a table that has not yet been created._________________________​
Question
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.​
Question
FORCE is the default mode for the CREATE VIEW command._________________________​
Question
"TOP-N" analysis is performed by sorting values in ascending or descending order in an inline view.​
Question
Rows in an underlying table cannot be deleted through a complex view that contains an arithmetic operation.​
Question
Rows can be deleted 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.​
Question
When a query references a view,the query in the view is processed,and the results are treated as a(n)permanent table._________________________
Question
DML operations cannot be performed on a key-preserved table.​
Question
Update operations cannot be performed through a complex view that contains an arithmetic expression.​
Question
Values cannot be inserted through a view into columns that are based on arithmetic expressions.​
Question
The pseudo column ROW can be used to perform a "TOP-N" analysis._________________________​
Question
Rows cannot be deleted from a table through a complex view that is based on a group function._________________________​
Question
Which of the following describes a subquery used in a FROM clause to create a "temporary" table that can be referenced by the SELECT and WHERE clauses of the outer query?​

A) ​simple view
B) ​complex view
C) ​inline view
D) ​"TOP-N" analysis
Question
The OR REPLACE clause is only necessary if another view may already exist with the same name._________________________​
Question
An inline analysis can be used to find the "Top-N" values._________________________​
Question
Rows cannot be added to a table through a complex view that was created with the ORDER BY clause._________________________​
Question
A(n)UPDATE operation can be performed on a complex view that contains an arithmetic operation._________________________​
Question
Which of the following describes a type of view that is based on a subquery that retrieves or derives data from one or more tables,and may also contain functions or grouped data?​

A) ​simple view
B) ​complex view
C) ​inline view
D) ​"TOP-N" analysis
Question
Any DDL operation can be performed on a simple view that was not created with the WITH READ ONLY option,unless it violates an existing constraint._________________________​
Question
"TOP-N" analysis can be used to find the highest values in a column by sorting the data in ascending order._________________________​
Question
Rows cannot be added to a table through a complex view that is based on a group function._________________________​
Question
Which of the following statements about views is incorrect?​

A) ​Views assist users who do not have the training to issue complex SQL inquiries.
B) ​Views restrict users' access to sensitive data.
C) ​Views are database objects that actually store data.
D) ​A view can be referenced in a SELECT...FROM statement,just like any table.
Question
Which of the following describes a type of view that is based upon a subquery that only references one table and does not include any group functions,expressions,or GROUP BY clauses?​

A) ​simple view
B) ​complex view
C) ​inline view
D) ​"TOP-N" analysis
Question
A(n)complex view can contain data from more than one table._________________________​
Question
The DELETE operation can be performed through a complex view that contains an arithmetic operation._________________________​
Question
A(n)____ stores a query and is used to access data in the underlying tables.​

A) ​view
B) ​constraint
C) ​function
D) ​argument
Question
DML operations cannot be performed on non key-preserved tables through a complex view._________________________​
Question
A view can be dropped or deleted using the DELETE VIEW command._________________________​
Question
The UPDATE command cannot be used on a view created with the WITH CHECK OPTION._________________________​
Question
Rows cannot be deleted if the complex view was created with a(n)GROUP BY clause._________________________​
Question
If you want to create a view based upon a table or tables that do not yet exist,or are currently unavailable (e.g. ,off-line),what keyword can you use to avoid receiving an error message?​

A) ​FORCE
B) ​NOERROR
C) ​OVERRIDE
D) ​none of the above
Question
Which of the following types of views cannot include an arithmetic expression?​

A) ​simple view
B) ​inline view
C) ​complex view
D) ​all of the above
Question
What is the default mode for the CREATE VIEW command?​

A) ​COMPILE
B) ​NOCOMPILE
C) ​FORCE
D) ​NOFORCE
Question
Which of the following types of views cannot contain grouped data?​

A) ​simple
B) ​complex
C) ​inline view
D) ​all of the above
Question
The OR REPLACE clause is not required if ____.​

A) ​another view does not exist with the same name
B) ​the view is not based on a group function
C) ​the view does not contain data from more than one table
D) ​the CREATE command does not specify the WITH CHECK OPTION option
Question
Which of the following types of views cannot include a GROUP BY clause?​

A) ​simple view
B) ​inline view
C) ​complex view
D) ​all of the above clause
Question
____ aren't allowed in the CREATE VIEW command.​

A) ​Arithmetic expressions
B) ​ORDER BY clauses
C) ​Group functions
D) ​GROUP BY clauses
Question
The ____ constraint ensures that any DML operations performed on the view (e.g. ,adding rows,changing data)will not prevent the row from being accessed by the view because it no longer meets the condition in the WHERE clause.​

A) ​ON UPDATE CHECK
B) ​WITH CHECK OPTION
C) ​WITH READ ONLY
D) ​READ-WRITE ONLY
Question
Which constraint ensures that the data in a view cannot be changed?​

A) ​WITH CHECK OPTION
B) ​WITH READ OPTION
C) ​WITH READ ONLY
D) ​NO WRITE OPTION
Question
Which of the following statements is incorrect?​

A) ​A view can be created with the CREATE VIEW command.
B) ​Views can be modified by using the ALTER VIEW...MODIFY command.
C) ​A view cannot be modified; if you need to change it,you must use the CREATE OR REPLACE VIEW keywords.
D) ​A view cannot be given the same name as another database object in the same schema.
Question
A user can perform a DML operation (add,modify,delete)on a simple view if it does not violate which type of existing constraint on the underlying base table?​

A) ​PRIMARY KEY
B) ​WITH CHECK OPTION
C) ​UNIQUE
D) ​all of the above
Question
​Which type of view is created with the following command?
​ CREATE VIEW inventory AS SELECT isbn,title,retail price
FROM books
WITH READ ONLY;

A) ​simple
B) ​complex
C) ​derived
D) ​inline
Question
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
Question
Which statement is true about the view created with the following command?
CREATE VIEW inventory AS SELECT isbn,title,retail price
FROM books
WITH READ ONLY;

A) ​The command creates a simple view.
B) ​DML operations are NOT allowed on the data displayed by the view.
C) ​A view named INVENTORY did not previously exist.
D) ​all of the above
Question
Which type of view is created with the following command?
CREATE VIEW OR REPLACE outstanding
AS SELECT customer#,order#,orderdate,shipdate
FROM orders
WHERE shipdate IS NULL
WITH READ ONLY;

A) ​simple
B) ​complex
C) ​derived
D) ​inline
Question
Which of the following options will prevent any DML operations from being performed on the underlying table of a view?​

A) ​WITH READ ONLY
B) ​WITH CHECK ONLY
C) ​WITH CHECK OPTION
D) ​NO WRITE OPTION
Question
Which statement is not true about the view created with the following command?
CREATE VIEW inventory
AS SELECT isbn,title,retail price
FROM books;

A) ​The command creates a simple view.
B) ​DML operations are not allowed on the data displayed by the view.
C) ​A view named INVENTORY did not previously exist.
D) ​all of the above
Question
What is the procedure for assigning new names for the columns that are displayed by a view?​

A) ​The new column names can be listed after the VIEW keyword,enclosed in parentheses.
B) ​Column aliases can be used in the subquery,and Oracle12c will use the aliases as column names in the view that is created.
C) ​all of the above
D) ​none of the above
Question
​Which statement is true about the view created with the following command?
CREATE OR REPLACE VIEW inventory
AS SELECT isbn,title,retail price
FROM books;

A) ​The command creates a complex view.
B) ​DML operations are not allowed on the data displayed by the view.
C) ​A database object named INVENTORY may already exist.
D) ​all of the above
Question
Which of the following types of views cannot include a group function?

A) ​simple view
B) ​inline view
C) ​complex view
D) ​all of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/133
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 13: Views
1
An inline view is a temporary table that only lasts for the duration of the SELECT statement used to create it.​
True
2
A view can be modified using the MODIFY clause of the ALTER VIEW command.​
False
3
Any DML operation can be performed on a simple view that was not created with the WITH READ ONLY option,unless it violates an existing constraint.​
True
4
Column aliases can be used in the subquery to assign new column names to the columns contained in a view.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
5
A simple view is based upon a subquery that references only one table and doesn't contain any group functions,expressions,or a GROUP BY clause.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
6
The WITH READ ONLY option can be used to prevent changes from being made to the data displayed by the view.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
7
A view name must be enclosed in single quotation marks if it is referenced in the FROM clause of a SELECT statement.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
8
DML operations can be performed through a simple view even if the operation will violate constraints on the underlying table.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
9
Views can be used to restrict a user's access to sensitive data.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
10
A view cannot be given the same name as another database object.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
11
You cannot create a view if the underlying table does not exist at the time the view is created.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
12
Views are database objects that store data.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
13
A complex view cannot contain any group functions.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
14
The column names used in the view must be the same names as the column names in the underlying table(s).​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
15
A complex view can retrieve data from more than one table.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
16
Rows cannot be added to a simple view.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
17
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.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
18
​A view can be created to simplify issuing complex SQL queries.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
19
Views are not database objects.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
20
A simple view cannot contain a simple arithmetic operation.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
21
The WITHOUT UPDATE keywords prevent DML operations from being performed through a view._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
22
DML operations can be performed on a view created with the DISTINCT keyword.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
23
A(n)existing view cannot be modified._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
24
An ORDER BY clause can be used to perform "TOP-N" analysis.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
25
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._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
26
A view can be thought of as the result of a(n)stored query._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
27
A(n)view is a database object,but it does not actually store data._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
28
A(n)simple view can contain a GROUP BY clause._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
29
An inline view is used to create a(n)permanent table._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
30
Rows can be added through a complex view that is based upon grouped data.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
31
The NOFORCE keyword can be used to create a view based upon a table that has not yet been created._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
32
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.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
33
FORCE is the default mode for the CREATE VIEW command._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
34
"TOP-N" analysis is performed by sorting values in ascending or descending order in an inline view.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
35
Rows in an underlying table cannot be deleted through a complex view that contains an arithmetic operation.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
36
Rows can be deleted 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.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
37
When a query references a view,the query in the view is processed,and the results are treated as a(n)permanent table._________________________
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
38
DML operations cannot be performed on a key-preserved table.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
39
Update operations cannot be performed through a complex view that contains an arithmetic expression.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
40
Values cannot be inserted through a view into columns that are based on arithmetic expressions.​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
41
The pseudo column ROW can be used to perform a "TOP-N" analysis._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
42
Rows cannot be deleted from a table through a complex view that is based on a group function._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
43
Which of the following describes a subquery used in a FROM clause to create a "temporary" table that can be referenced by the SELECT and WHERE clauses of the outer query?​

A) ​simple view
B) ​complex view
C) ​inline view
D) ​"TOP-N" analysis
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
44
The OR REPLACE clause is only necessary if another view may already exist with the same name._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
45
An inline analysis can be used to find the "Top-N" values._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
46
Rows cannot be added to a table through a complex view that was created with the ORDER BY clause._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
47
A(n)UPDATE operation can be performed on a complex view that contains an arithmetic operation._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following describes a type of view that is based on a subquery that retrieves or derives data from one or more tables,and may also contain functions or grouped data?​

A) ​simple view
B) ​complex view
C) ​inline view
D) ​"TOP-N" analysis
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
49
Any DDL operation can be performed on a simple view that was not created with the WITH READ ONLY option,unless it violates an existing constraint._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
50
"TOP-N" analysis can be used to find the highest values in a column by sorting the data in ascending order._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
51
Rows cannot be added to a table through a complex view that is based on a group function._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following statements about views is incorrect?​

A) ​Views assist users who do not have the training to issue complex SQL inquiries.
B) ​Views restrict users' access to sensitive data.
C) ​Views are database objects that actually store data.
D) ​A view can be referenced in a SELECT...FROM statement,just like any table.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
53
Which of the following describes a type of view that is based upon a subquery that only references one table and does not include any group functions,expressions,or GROUP BY clauses?​

A) ​simple view
B) ​complex view
C) ​inline view
D) ​"TOP-N" analysis
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
54
A(n)complex view can contain data from more than one table._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
55
The DELETE operation can be performed through a complex view that contains an arithmetic operation._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
56
A(n)____ stores a query and is used to access data in the underlying tables.​

A) ​view
B) ​constraint
C) ​function
D) ​argument
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
57
DML operations cannot be performed on non key-preserved tables through a complex view._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
58
A view can be dropped or deleted using the DELETE VIEW command._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
59
The UPDATE command cannot be used on a view created with the WITH CHECK OPTION._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
60
Rows cannot be deleted if the complex view was created with a(n)GROUP BY clause._________________________​
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
61
If you want to create a view based upon a table or tables that do not yet exist,or are currently unavailable (e.g. ,off-line),what keyword can you use to avoid receiving an error message?​

A) ​FORCE
B) ​NOERROR
C) ​OVERRIDE
D) ​none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following types of views cannot include an arithmetic expression?​

A) ​simple view
B) ​inline view
C) ​complex view
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
63
What is the default mode for the CREATE VIEW command?​

A) ​COMPILE
B) ​NOCOMPILE
C) ​FORCE
D) ​NOFORCE
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following types of views cannot contain grouped data?​

A) ​simple
B) ​complex
C) ​inline view
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
65
The OR REPLACE clause is not required if ____.​

A) ​another view does not exist with the same name
B) ​the view is not based on a group function
C) ​the view does not contain data from more than one table
D) ​the CREATE command does not specify the WITH CHECK OPTION option
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following types of views cannot include a GROUP BY clause?​

A) ​simple view
B) ​inline view
C) ​complex view
D) ​all of the above clause
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
67
____ aren't allowed in the CREATE VIEW command.​

A) ​Arithmetic expressions
B) ​ORDER BY clauses
C) ​Group functions
D) ​GROUP BY clauses
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
68
The ____ constraint ensures that any DML operations performed on the view (e.g. ,adding rows,changing data)will not prevent the row from being accessed by the view because it no longer meets the condition in the WHERE clause.​

A) ​ON UPDATE CHECK
B) ​WITH CHECK OPTION
C) ​WITH READ ONLY
D) ​READ-WRITE ONLY
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
69
Which constraint ensures that the data in a view cannot be changed?​

A) ​WITH CHECK OPTION
B) ​WITH READ OPTION
C) ​WITH READ ONLY
D) ​NO WRITE OPTION
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following statements is incorrect?​

A) ​A view can be created with the CREATE VIEW command.
B) ​Views can be modified by using the ALTER VIEW...MODIFY command.
C) ​A view cannot be modified; if you need to change it,you must use the CREATE OR REPLACE VIEW keywords.
D) ​A view cannot be given the same name as another database object in the same schema.
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
71
A user can perform a DML operation (add,modify,delete)on a simple view if it does not violate which type of existing constraint on the underlying base table?​

A) ​PRIMARY KEY
B) ​WITH CHECK OPTION
C) ​UNIQUE
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
72
​Which type of view is created with the following command?
​ CREATE VIEW inventory AS SELECT isbn,title,retail price
FROM books
WITH READ ONLY;

A) ​simple
B) ​complex
C) ​derived
D) ​inline
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
73
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
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
74
Which statement is true about the view created with the following command?
CREATE VIEW inventory AS SELECT isbn,title,retail price
FROM books
WITH READ ONLY;

A) ​The command creates a simple view.
B) ​DML operations are NOT allowed on the data displayed by the view.
C) ​A view named INVENTORY did not previously exist.
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
75
Which type of view is created with the following command?
CREATE VIEW OR REPLACE outstanding
AS SELECT customer#,order#,orderdate,shipdate
FROM orders
WHERE shipdate IS NULL
WITH READ ONLY;

A) ​simple
B) ​complex
C) ​derived
D) ​inline
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
76
Which of the following options will prevent any DML operations from being performed on the underlying table of a view?​

A) ​WITH READ ONLY
B) ​WITH CHECK ONLY
C) ​WITH CHECK OPTION
D) ​NO WRITE OPTION
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
77
Which statement is not true about the view created with the following command?
CREATE VIEW inventory
AS SELECT isbn,title,retail price
FROM books;

A) ​The command creates a simple view.
B) ​DML operations are not allowed on the data displayed by the view.
C) ​A view named INVENTORY did not previously exist.
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
78
What is the procedure for assigning new names for the columns that are displayed by a view?​

A) ​The new column names can be listed after the VIEW keyword,enclosed in parentheses.
B) ​Column aliases can be used in the subquery,and Oracle12c will use the aliases as column names in the view that is created.
C) ​all of the above
D) ​none of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
79
​Which statement is true about the view created with the following command?
CREATE OR REPLACE VIEW inventory
AS SELECT isbn,title,retail price
FROM books;

A) ​The command creates a complex view.
B) ​DML operations are not allowed on the data displayed by the view.
C) ​A database object named INVENTORY may already exist.
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
80
Which of the following types of views cannot include a group function?

A) ​simple view
B) ​inline view
C) ​complex view
D) ​all of the above
Unlock Deck
Unlock for access to all 133 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 133 flashcards in this deck.