exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 165 discussion

Actual exam question from Oracle's 1z0-071
Question #: 165
Topic #: 1
[All 1z0-071 Questions]

Which two are true about using the FOR UPDATE clause in a SELECT statement? (Choose two.)

  • A. It can be used with SET operators (UNION, INTERSECT etc.).
  • B. It cannot be used with the DISTINCT keyword.
  • C. If the NOWAIT clause is added, the statement will automatically acquire locks from their owning transactions and not wait.
  • D. The statement skips rows locked by other transactions.
  • E. It can be used with joins.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lucemqy
8 months, 3 weeks ago
Selected Answer: BE
BE is correct
upvoted 2 times
...
XTIMON
11 months ago
Selected Answer: BE
B E are correct
upvoted 2 times
...
Darnun
1 year, 4 months ago
B - can SELECT FOR UPDATE be used with DISTINCT? I receive ORA-01786 error when testing
upvoted 1 times
Darnun
1 year, 3 months ago
BE are correct. C - FALSE. NOWAIT will not acquire locks from their owning transactions, but will not wait until they are released. If rows are already locked by other transaction (e.g. by UPDATE), then with NOWAIT parameter the ORA-00054 error will be thrown.
upvoted 1 times
mrcsp
5 months, 3 weeks ago
B is WRONG From Oracle SQL Reference: Restrictions on the FOR UPDATE Clause This clause is subject to the following restrictions: • You cannot specify this clause with the following other constructs: the DISTINCT operator, CURSOR expression, set operators, group_by_clause, or aggregate functions.
upvoted 1 times
mrcsp
5 months, 3 weeks ago
My bad, the alternative says CANNOT I mistakenly read CAN. Sorry.
upvoted 1 times
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago