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 90 discussion

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

Examine the description of the EMPLOYEES table:



Which two statements will insert a row into the EMPLOYEES table? (Choose two.)

  • A. INSERT INTO employees VALUES (101, 'John', 'Smith', 12000, SYSDATE);
  • B. INSERT INTO employees VALUES (101, 'John', 'Smith', 10, 12000, SYSDATE);
  • C. INSERT INTO employees (employee_id, salary, first_name, hiredate, last_name) VALUES (101, 12100, 'John', SYSDATE, 'Smith');
  • D. INSERT INTO employees (employee_id, first_name, last_name, salary, hiresate)
    VALUES ( (SELECT 101, 'John', 'Smith'. 12000, SYSDATE FROM dual) );
  • E. INSERT INTO employees SELECT 101, 'John', 'Smith', 12000, (SELECT SYSDATE FROM dual), 10 FROM dual;
  • F. INSERT INTO employees VALUES (101, 'John', ' ', 12000, SYSDATE, 10);
Show Suggested Answer Hide Answer
Suggested Answer: CF 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Babi265
Highly Voted 1 year, 4 months ago
i am finding 3 that are correct. CEF
upvoted 7 times
...
Renad_16
Highly Voted 1 year, 4 months ago
I think it’s CE ?
upvoted 5 times
...
ArslanAltaf
Most Recent 1 week, 6 days ago
CF is correct. in F, if have space between ' ' for last Name, it will be accepted. if there is no space, then not null constraint will apply.
upvoted 1 times
...
usarovsherzod68
1 month, 1 week ago
A, C for me. E is wrong because SELECT 101 is not correct.
upvoted 1 times
...
yaya32
3 months, 2 weeks ago
Selected Answer: EF
EF is correct for me as ' ' is not null...
upvoted 1 times
...
lucemqy
5 months, 2 weeks ago
Selected Answer: CE
CE definitely works tested
upvoted 1 times
...
lucemqy
5 months, 2 weeks ago
Selected Answer: CD
CD also works
upvoted 1 times
...
lucemqy
5 months, 2 weeks ago
Selected Answer: CF
CF Should be the correct answer
upvoted 1 times
...
jm9999
7 months, 2 weeks ago
C, E worked. F gave me ora-01400
upvoted 1 times
...
TheOracleWasTaken
9 months ago
Selected Answer: CF
E works too
upvoted 1 times
...
zouve
10 months, 1 week ago
CE tested
upvoted 1 times
zouve
10 months, 1 week ago
if there is a space iside ' ' on F is working
upvoted 1 times
...
...
Nelita
11 months ago
Selected Answer: CE
CEF are corret. I checked in data base.
upvoted 2 times
...
CyberP
11 months, 1 week ago
Why A is wrong?
upvoted 1 times
CyberP
11 months, 1 week ago
Maybe AC are correct?
upvoted 3 times
TheOracleWasTaken
9 months ago
when you specify the values keyword you must insert a value for every column in the table. If it permits nulls then just insert null
upvoted 1 times
shotcom
7 months, 2 weeks ago
https://www.techonthenet.com/oracle/insert.php according to that link You can omit a column from the Oracle INSERT statement if the column allows NULL values. so answer A is correct
upvoted 1 times
...
...
...
...
J4vi
11 months, 3 weeks ago
Selected Answer: CE
C E are correct. F would be ok whith an space between ' '. If you copy and paste the exact alternative from here, it works, but I imagine that the exam doesn't have that space and that's why the're only two correct options.
upvoted 2 times
...
kuff
12 months ago
Selected Answer: CE
CE is the answer
upvoted 1 times
...
pmeyer
1 year ago
Selected Answer: CE
"F" is a wrong because not null.
upvoted 1 times
yanoolthecool
11 months, 1 week ago
' ' is not a null, but its a bit confusing, since in some compilers ' ' is actually null, but appears to have a space between the 2 quotations when there actually isnt.
upvoted 1 times
...
...
jfc1
1 year, 3 months ago
Selected Answer: CE
F is wrong because the column last_name has a not null constraint, in this case Oracle will not accept '' as value for the last_name column CE is the correct answer
upvoted 4 times
Orxan_H
1 year ago
in E missing "values", so i think correct answers C D
upvoted 1 times
yanoolthecool
11 months, 1 week ago
Thought the same, was wrong, here; try this: Create table toz ( id number primary key, name varchar2(255) ); insert into toz (select 1,'toz'from dual);
upvoted 1 times
CyberP
11 months, 1 week ago
at least there is brackets surround select in your example but e there are no brackets at all and no values it sounds wrong, but i am not sure.
upvoted 1 times
TheOracleWasTaken
9 months ago
You don't need the brackets it works
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 ...