Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 5 1 You want to create a view that when queried will display the name, customer identification number, new balance, finance charge, and credit
Question
You want to create a view that when queried will display the name, customer identification number, new balance, finance charge, and credit limit of all customers. When queried, the display should be sorted by credit limit from highest to lowest, then by the last name alphabetically. The view definition should be created regardless of the existence of the CUSTOMER and ACCOUNT tables. No DML may be performed when using this view. Evaluate these statements:
CREATE OR REPLACE FORCE VIEW CUSTCREDITV
AS SELECT clastname, cfirstname, ccustomerid anewbalance, afinancecharge,
acreditlimit
FROM customer c account a
WHERE caccountid aaccountid
WITH READ ONLY;
SELECT FROM custcreditv ORDER BY creditlimit DESC, lastname;
Which statement is true?
A
When both statements are executed, all of the desired results are achieved.
B
The CREATE VIEW statement will fail because a view may not be created on tables that do not exist or are not accessible by the user.
C
The statements will not return all of the desired results because the WITH CHECK OPTION clause is not included in the CREATE VIEW statement.
D
To achieve all of the desired results this ORDER BY clause should be added to the CREATE VIEW statement: ORDER BY acreditlimit DESC, clastname.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started