Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6105961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:01:43+00:00 2026-05-23T14:01:43+00:00

In Oracle, there is a column(dateColumn) in a table with column type = DATE

  • 0

In Oracle, there is a column(dateColumn) in a table with column type = DATE and the value for a particular record is showing as ’10/03/2010′ when I do a select * from table.
Now, when I do:

SELECT * 
  FROM table 
 WHERE dateColumn < '01-JAN-11'

Nothing shows up. When I do:

SELECT * 
  FROM table 
 WHERE dateColumn > '01-JAN-11'

The record shows up.
Why is this behaving this way? “10/03/2010” is 10th MArch 2010 so clearly that is < 01 Jan 2011.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:01:43+00:00Added an answer on May 23, 2026 at 2:01 pm

    There is no definitive date format — it can be different by region or even business. That’s the reality without even considering SQL…

    In Oracle, the means of evaluating a string as a date requires you to use the TO_DATE function:

    SELECT * 
      FROM table 
     WHERE dateColumn > TO_DATE('01-JAN-11', 'DD-MON-YY')
    

    You need to supply the format mask to instruct Oracle how to interpret the date you’re supplying it.

    The function is often different on other databases, but the experience is otherwise the same. Most databases accept ‘YYYY-MM-DD’ for implicit conversion of a string into a date. Explicit conversion is when you use a function, like TO_DATE to explicitly change the data type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to move an column in an Oracle table from last
Is there a way in Oracle to select the date on which daylight savings
Is there a difference in performance (in oracle) between Select * from Table1 T1
Is there a system column - timestamp - in Oracle table to determine when
I have a table with a DATE column with time (as usual in Oracle
When there is a non-string(i.e. : varchar,date) column(col1) in oracle db, if I do:
Assume I have a table with a column of integers in Oracle. There are
I'm selecting the max of a column from a table. But there is one
There is a column (REC_CREATE_TIMESTAMP) in a table which shows date in format YY-MM-DD.
Is there a way to mandate table/column comments in Oracle 11g. Some Database parameters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.