Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008

    Unanswered: comparing dates in sql query

    if I say:
    SELECT * FROM ... WHERE IssueDt >= '2007-01-01', it never retrieves values where the IssueDt = 2007-01-01, it only retrieves values greater than. Any ideas why this is so? Is there a way to return queries both equal to and greater than, or would I just have to do something like WHERE IssueDt > '2006-12-31'? thanks!

  2. #2
    Join Date
    Jan 2003
    Provided Answers: 5
    It should work as desired. You should open a PMR with IBM.


  3. #3
    Join Date
    Jan 2007
    Jena, Germany
    Could you show us some data and a full example query that exhibits the problem? I suspect you have some sort of user problem, maybe timezone-related or so...

    p.s: It helps to know which DB2 version you are using on which platform.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts