exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 108 discussion

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

Examine this SQL statement:



Which two are true? (Choose two.)

  • A. The DELETE statement executes successfully even if the subquery selects multiple rows.
  • B. The subquery is executed before the DELETE statement is executed.
  • C. The subquery is not a correlated subquery.
  • D. All existing rows in the EMPLOYEES table are deleted.
  • E. The subquery is executed for every row in the EMPLOYEES table.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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, 2 weeks ago
Selected Answer: AE
AE is correct
upvoted 1 times
...
zouve
1 year ago
Selected Answer: AE
A. The DELETE statement executes successfully even if the subquery selects multiple rows. This is because the EXISTS condition only checks for the existence of at least one row in the subquery, regardless of how many rows are returned. E. The subquery is executed for every row in the EMPLOYEES table. This is because the subquery is a correlated subquery, which means that it references a column from the outer query (e.employee_id). As a result, the subquery must be executed once for each row in the EMPLOYEES table to determine whether the EXISTS condition is true or false for that row.
upvoted 2 times
zouve
1 year ago
in other words the subquery is evaluated once for each row selected by the outer query
upvoted 1 times
...
...
karols32
1 year, 2 months ago
A,D. Subquery isn't query before outer query.
upvoted 1 times
...
auwia
1 year, 3 months ago
AB are correct.
upvoted 1 times
...
Poke90
1 year, 4 months ago
Why is B wrong?
upvoted 2 times
TofOra
6 months ago
Understand that one thing is the execution of the DELETE command other is the deletion of the row.
upvoted 1 times
...
TofOra
6 months ago
The DELETE starts running and then it calls the subquery.
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