1z0-071 Exam QuestionsBrowse all questions from this exam

1z0-071 Exam - Question 90


Examine the description of the EMPLOYEES table:

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

Show Answer
Correct Answer: CEF

To insert a row into the EMPLOYEES table, the insertion statement must correctly match the column names and their constraints as described in the table. Option A is incorrect because it does not provide a value for DEPARTMENT_ID, which is not listed as nullable. Option B is incorrect because it attempts to insert an extra value. Option D is incorrect due to the syntax error in mentioning 'hiresate' instead of 'hiredate'. Option F is incorrect because the LAST_NAME column has a NOT NULL constraint, and inserting a blank string (' ') violates that constraint. Therefore, the correct statements are: Option C, which correctly lists the columns and provides appropriate values, and Option E, which uses a SELECT statement that properly matches the number of values with the columns and retrieves SYSDATE correctly.

Discussion

17 comments
Sign in to comment
Babi265
Dec 5, 2022

i am finding 3 that are correct. CEF

Renad_16Options: CE
Dec 5, 2022

I think it’s CE ?

jfc1Options: CE
Jan 20, 2023

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

Orxan_H
Apr 22, 2023

in E missing "values", so i think correct answers C D

yanoolthecool
May 25, 2023

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);

CyberP
May 27, 2023

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.

TheOracleWasTaken
Aug 2, 2023

You don't need the brackets it works

yanoolthecool
Jun 13, 2024

gotta agree there

J4viOptions: CE
May 11, 2023

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.

NelitaOptions: CE
Jun 1, 2023

CEF are corret. I checked in data base.

pmeyerOptions: CE
Apr 28, 2023

"F" is a wrong because not null.

yanoolthecool
May 25, 2023

' ' 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.

kuffOptions: CE
May 3, 2023

CE is the answer

CyberP
May 27, 2023

Why A is wrong?

CyberP
May 27, 2023

Maybe AC are correct?

TheOracleWasTaken
Aug 2, 2023

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

shotcom
Sep 17, 2023

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

zouveOptions: CE
Jun 22, 2023

CE tested

zouve
Jun 24, 2023

if there is a space iside ' ' on F is working

TheOracleWasTakenOptions: CF
Aug 2, 2023

E works too

jm9999Options: CE
Sep 14, 2023

C, E worked. F gave me ora-01400

lucemqyOptions: CF
Nov 14, 2023

CF Should be the correct answer

lucemqyOptions: CD
Nov 14, 2023

CD also works

lucemqyOptions: CE
Nov 16, 2023

CE definitely works tested

yaya32Options: EF
Jan 16, 2024

EF is correct for me as ' ' is not null...

usarovsherzod68Options: AC
Mar 22, 2024

A, C for me. E is wrong because SELECT 101 is not correct.

ArslanAltafOptions: CF
Apr 17, 2024

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.