Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Oracle Certified Professional Exams (OCP & OCA) >> Question about DATE format (Q190 in TK) 1Z0-007

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Question about DATE format (Q190 in TK) 1Z0-007
 ozkucur  Posted: Nov 07, 2006 05:55:37 AM

 Total Post: 23
 Joined: Oct, 2006






 Examine the structure of the EMPLOYEES table:

EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
HIRE_DATE DATE


Which INSERT statement is valid?

A)INSERT INTO employees (employee_id, first_name, last_name, hire_date)
VALUES ( 1000, ‘John’, ‘Smith’, ‘01/01/01’);
B)INSERT INTO employees(employee_id, first_name, last_name, hire_date)
VALUES ( 1000, ‘John’, ‘Smith’, ’01 January 01’);
C)INSERT INTO employees(employee_id, first_name, last_name, Hire_date)
VALUES ( 1000, ‘John’, ‘Smith’, To_date(‘01/01/01’));
D)INSERT INTO employees(employee_id, first_name, last_name, hire_date)
VALUES ( 1000, ‘John’, ‘Smith’, 01-Jan-01);

ANSWER: TK says A

In my opinion the default repsetation of the date in Oracle is like this: '01-JAN-01' . But it doen't exist in the answers.

I've tried A, but got the following error:

ORA-01843: not a valid month

any opinion?

 Jayanta
Posted: Nov 07, 2006 02:59:55 PM  

 Total Post: 479
 Joined: Feb, 2006






 
HI1
THE DEFAULT DATE FORMAT IN ORACLE IS 'DD-MON-YY' SO ACCORDING TO THIS FORMAT THE LAST OPTION 'D' IS CORRECT BUT IN ORACLE DATE VALUES AND LITERALS ARE COMPULSORY TO PUT WITHIN A SINGLE QUOTE('') BUT THE OPTION 'D' LACKS THIS SINGLE QUOTE, HOPE U HAVE MSTYPED.

BYE

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar816
  Mohammed Taj704
  Jayanta Sur479
  positive fanatic416
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma231
  Ramesh Jois226
  Bishal Khetan196






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software