1z1-071試験無料問題集「Oracle Database SQL 認定」
Table HR.EMPLOYEEScontains a row where the EMPLOYEE_IDis 109.
User ALICEhas no privileges to access HR.EMPLOYEES.
User ALICEstarts a session.
User HRstarts a session and successfully executes these statements:
GRANT DELETE ON employees TO alice;
UPDATE employees SET salary = 24000 WHERE employee_id = 109;
In her existing session ALICEthen executes:
DELETE FROM hr.employees WHERE employee_id = 109;
What is the result?
User ALICEhas no privileges to access HR.EMPLOYEES.
User ALICEstarts a session.
User HRstarts a session and successfully executes these statements:
GRANT DELETE ON employees TO alice;
UPDATE employees SET salary = 24000 WHERE employee_id = 109;
In her existing session ALICEthen executes:
DELETE FROM hr.employees WHERE employee_id = 109;
What is the result?
正解:B
解答を投票する
View the Exhibit and examine the structure of ORDERS and ORDER_ITEMS tables.
ORDER__ID is the primary key in the ORDERS table. It is also the foreign key in the ORDER_ITEMS table wherein it is created with the ON DELETE CASCADE option.

Which DELETE statement would execute successfully?
ORDER__ID is the primary key in the ORDERS table. It is also the foreign key in the ORDER_ITEMS table wherein it is created with the ON DELETE CASCADE option.

Which DELETE statement would execute successfully?
正解:A
解答を投票する
View the Exhibit and examine the structure of the ORDER_ITEMS and ORDERStables.

You are asked to retrieve the ORDER_ID,product_ID, and total price (UNIT_PRICEmultiplied by QUANTITY), where the total price is greater than 50,000.
You executed the following SQL statement:
SELECTprder_id, product_id, unit_price*quantity "Total Price"
FROM order_items
WHERE unit_price*quantity > 50000
NATURAL JOIN orders;
Which statement is true regarding the execution of the statement?

You are asked to retrieve the ORDER_ID,product_ID, and total price (UNIT_PRICEmultiplied by QUANTITY), where the total price is greater than 50,000.
You executed the following SQL statement:
SELECTprder_id, product_id, unit_price*quantity "Total Price"
FROM order_items
WHERE unit_price*quantity > 50000
NATURAL JOIN orders;
Which statement is true regarding the execution of the statement?
正解:A
解答を投票する




