Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 1z0-071 topic 1 question 213 discussion

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

Examine this statement which executes successfully:



Which is true?

  • A. Only if the salary is 20000 or less and the employee id is 125 or higher, insert EMPLOYEE_ID, MANAGER_ID, and SALARY into the MGR_HISTORY table.
  • B. Regardless of salary and employee id, insert EMPLOYEE_ID, MANAGER_ID, and SALARY into the MGR_HISTORY table.
  • C. Regardless of salary, only if the employee id is less than 125, insert EMPLOYEE_ID, MANAGER_ID, and SALARY into the MGR_HISTORY table.
  • D. Only if the salary is 20000 or less and the employee id is less than 125, insert EMPLOYEE_ID, MANAGER_ID, and SALARY into the MGR_HISTORY table.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
archit4321
2 weeks, 3 days ago
Selected Answer: D
In INSERT ALL we can have multiple INTO clauses under conditional statements. So both INTO statement will be executed under ELSE condition.
upvoted 1 times
...
billysunday1
1 month, 3 weeks ago
Selected Answer: C
Using chatgpt4, answer given is C. someone pls verify Expected Outcome Based on Conditions: For employee_id = 100 with salary = 25000: Meets SAL > 20000, so data is inserted into special_sal. Data is also inserted into mgr_history because the condition for the mgr_history table insertion doesn't depend on the salary. For employee_id = 110 with salary = 18000: Does not meet SAL > 20000, so data is inserted into sal_history. Data is also inserted into mgr_history regardless of the salary because there's no conditional logic preventing this in the provided statement. For employee_id = 120 with salary = 21000: Meets SAL > 20000, so data is inserted into special_sal. Data is also inserted into mgr_history regardless of the salary.
upvoted 1 times
...
f38cff1
3 months, 2 weeks ago
C is correct you can CHATGPT
upvoted 1 times
...
lucemqy
6 months ago
Selected Answer: D
D is correct
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 ...