Oracle Database SQL - 1z0-071 模擬練習

Which two are SQL features? (Choose two.)

正解: B,E
解説: (PassTest メンバーにのみ表示されます)
Which statement is true about TRUNCATE and DELETE?

正解: B
解説: (PassTest メンバーにのみ表示されます)
The ORDERS table has a primary key constraint on the ORDER_ID column.
The ORDER_ITEMS table has a foreign key constraint on the ORDER_ID column, referencing the primary key of the ORDERS table.
The constraint is defined with ON DELETE CASCADE.
There are rows in the ORDERS table with an ORDER_TOTAL of less than 1000.
Which three DELETE statements execute successfully?

正解: B,C
Evaluate the following SQL statement:
SELECT product_name || 'it's not available for order'
FROM product_information
WHERE product_status = 'obsolete';
You received the following error while executing the above query:
ERROR:
ORA-01756: quoted string not properly terminated
What would you do to execute the query successfully?

正解: A
You are designing the structure of a table in which two columns have the specifications:
COMPONENT_ID - must be able to contain a maximum of 12 alphanumeric
characters and uniquely identify the row
EXECUTION_DATETIME - contains Century, Year, Month, Day, Hour, Minute,
Second to the maximum precision and is used for calculations and
comparisons between components.
Which two options define the data types that satisfy these requirements most efficiently?

正解: A,C
An Oracle database server session has an uncommitted transaction in progress which updated
5000 rows in a table.
In which three situations does the transactions complete thereby committing the updates?
(Choose three.)

正解: A,B,F
You must display details of all users whose username contains the string 'ch_'.
Which query generates the required output? (Choose the best answer.)

正解: A
You execute this query:

What is the result?

正解: D
Evaluate this query:
SQL> SELECT TRUNC(ROUND(156.00,-1),-1)
FROM DUAL;
What will be the result?

正解: C