Which INSERT statement is valid?

Examine the structure of the EMPLOYEES table: Which INSERT statement is valid?

Examine the structure of the EMPLOYEES table: Which INSERT statement is valid?

A.
INSERT INTO employees(employee_id, first_name, last_name, hire_date) VALUES (

1000, ‘John’, ‘Smith’, 01-Jan-01);

B.
INSERT INTO employees(employee_id, first_name, last_name, Hire_date) VALUES (
1000, ‘John’, ‘Smith’, To_date(‘01/01/01’));

C.
INSERT INTO employees (employee_id, first_name, last_name, hire_date) VALUES (
1000, ‘John’, ‘Smith’, ‘01/01/01’);

D.
INSERT INTO employees(employee_id, first_name, last_name, hire_date) VALUES (
1000, ‘John’, ‘Smith’, ’01 January 01’);



Leave a Reply 10

Your email address will not be published. Required fields are marked *


Trinux

Trinux

then in “a” it should have ’01-Jan-01′

Striker

Striker

you are right Trinux

alexy

alexy

why B doesn’t work?

select to_date(’01/02/01′) from dual

__
TO_DATE(’01/02/01′)
——————-
01.02.01

ash

ash

select to_date(’01/01/01′) from dual
*
ERROR at line 1:
ORA-01843: not a valid month

mostramistra

mostramistra

D is the right answer, A if the date was in ’01-Jan-01′

DLI

DLI

Yup! You’re right..! Answer is Alone D else result in error.!

Kelvin Cromwell

Kelvin Cromwell

Cleared Oracle Database 11g 1Z0-051 exam last weekend!

Scored 90%! (The passing score is 60%)

There were 64 questions in my actual 1Z0-051 test.

Many questions on SQL statements (Examine, Evaluate…etc.), Manipulating Data (Insert, Update, Delete), Using DDL Statements to Create and Manage Tables.

Also, please pay close attention to questions on Reporting Aggregated Data Using the Group Functions, Using Subqueries to Solve Queries, Creating Schema Objects, a little difficult!

I mainly learned the PassLeader 1Z0-051 dumps (http://www.passleader.com/1z0-051.html) (303q VCE and PDF), all questions were from it, and many wrong answers have been corrected in it, the most valid 1Z0-051 dumps! DO RECOMMEND!!

Kelvin Cromwell

Kelvin Cromwell

By the way, part of that 303q 1Z0-051 dumps are available here:

http://www.oraclebraindump.com/?s=1z0-051

(
p.s. More 1Z0-051 exam questions on Google Drive:

drive.google.com/open?id=0B-ob6L_QjGLpWXpBUEhyRnVXVlE
)

Good Luck!!!

helion

helion

B

johnelk

johnelk

I think you are wrong.