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 5973453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:48:08+00:00 2026-05-22T20:48:08+00:00

Say I have the following code Some Sql query… is followed by this condition

  • 0

Say I have the following code

Some Sql query… is followed by this condition

AND EndDate < TO_DATE('02/14/2011','MM/DD/YY')+1

Is it that same as

AND EndDate <= TO_DATE('02/14/2011','MM/DD/YY')
  • 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-22T20:48:09+00:00Added an answer on May 22, 2026 at 8:48 pm

    Note: I am assuming based on your to_date formatting that the EndDate is a date field and not a date/time data type.

    Both queries should return the same result set. Consider the following:

    --Substitue "EndDate" for SYSDATE for this exercise
    
    -- Does "EndDate" occur before June 01, 2011? (Yes)
    SELECT 'TRUE'
    FROM DUAL
    WHERE  TRUNC(SYSDATE) < TO_DATE('05/31/2011','MM/DD/YY')+1
    
    -- Does "EndDate" occur on or before May 31, 2011? (Yes)
    SELECT 'TRUE'
    FROM DUAL
    WHERE  TRUNC(SYSDATE) <= TO_DATE('05/31/2011','MM/DD/YY')
    

    Both results would yield “TRUE”. What doubts are you having?

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

Sidebar

Related Questions

Let's say I have the following code in a form that is triggered on
i have some SQL code that is inserting values from another (non sql-based) system.
Lets say I have the following code: public class Base { // Some stuff
Say that I have the following code: function testA { setTimeout('testB()', 1000); doLong(); }
Long story short Say I have the following code: // a class like this
Ok so lets say I have a variable $css that contains some CSS code.
Let's say I have the following ruby code : def use_object(object) puts object.some_method end
Say I have the following code: function One() {} One.prototype.x = undefined; function Two()
Say I have the following code snippet in c# static const bool DO_PERFORMANCE_CODE =
Say I have the following code: <div onclick='location.href=http://www.example.com/'> <a href='#' onclick='alert(blah)'>click</a> </div> Is there

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.