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

  • Home
  • SEARCH
  • 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 849037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:02:21+00:00 2026-05-15T07:02:21+00:00

updated_date = 08-Jun-2010; I have a query like this select * from asd whre

  • 0
updated_date  = 08-Jun-2010;

I have a query like this

select * from asd whre updated_date <= todate('08-Jun-2010', 'dd-MM-yy');

but I am not getting any results. it only works if todate is 09-Jun-2010…

i.e. my equalto operator is not working properly.

why is it like that?

  • 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-15T07:02:22+00:00Added an answer on May 15, 2026 at 7:02 am

    In Oracle a DATE is a point in time. It always has a time component with a precision to the second. todate('08-Jun-2010', 'dd-Mon-yyyy') is in Oracle the same as todate('08-Jun-2010 00:00:00', 'dd-Mon-yyyy hh24:mi:ss'). So if you select rows up to that date you won’t get any row on that day with a time component not equal to 00:00.

    If you want to select all the rows up to and including 08-JUN-2010, I would suggest using:

    < to_date('09-06-2010', 'dd-MM-yyyy')
    

    or

    <= to_date('08-06-2010 23:59:59', 'dd-MM-yyyy hh24:mi:ss')
    

    Note – I corrected your date format: you need to use MON if you want to use the abbreviated month name. I would suggest using MM instead, so that you won’t get error when someone changes its client settings (NLS_DATE_LANGUAGE). Also prefer the use of YYYY instead of YY.

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

Sidebar

Related Questions

I have a factored time series that looks like this: df <- data.frame(a=c(11-JUL-2004, 11-JUL-2005,
Here is the updated question: the current query is doing something like: $sql1 =
I dont get following desired output from a DateTime-Object: 2010-03-29 13:15:00 My default localization
Not getting updates in MVC View following a post method Hi, Here's my controller
I have found this example on StackOverflow: var people = new List<Person> { new
when adding a new record like this ContentContacts c2 = new ContentContacts(); c2.updated_user =
I'm currently inserting/updating fields like this (if there's a better way, please say so
I have an UPDATE sql command that modifies a Date/Time field in a particular
hey, what do i have to write, if i want date&time which updates itself?
( Updated a little ) I'm not very experienced with internationalization using PHP, it

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.