exam questions

Exam 1z0-148 All Questions

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

Exam 1z0-148 topic 1 question 18 discussion

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

Examine this code:

Examine this DML statement executed in the SCOTT schema:
UPDATE emp SET comm = 1000 WHERE deptno= 20;
What is the outcome after executing this statement?

  • A. COMM is set to 1000 for all records in the EMP table where DEPTNO = 30.
  • B. The statement executes successfully but no rows are updated.
  • C. COMM is set to 1000 for all records in the EMP table where DEPTNO=20.
  • D. The statement fails with error ORA-28115: policy with check option violation.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Angelos_ang
2 years, 4 months ago
Selected Answer: B
The update will run but no rows will be updated
upvoted 1 times
...
sudhirdavim
4 years, 1 month ago
It is choice B for me as well when tested this script as it is.
upvoted 2 times
...
Adela_bg
4 years, 6 months ago
D - For INSERT and UPDATE statements only, setting update_check to TRUE causes the server to check the policy against the value after INSERT or UPDATE. The check applies only to the security relevant columns that are included in the policy definition. In other words, the INSERT or UPDATE operation will fail only if the security relevant column that is defined in the policy is added or updated in the INSERT or UPDATE statement.
upvoted 1 times
protonik2020
4 years, 5 months ago
no, check first. Runing code show's B, becouse function return is added to a where clausule and there is no update at all
upvoted 1 times
...
...
chaoyuim
4 years, 7 months ago
https://oracle-base.com/articles/8i/virtual-private-databases
upvoted 1 times
...
orakell
5 years, 2 months ago
Choice B happens when I run this code.
upvoted 3 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