Results 1 to 2 of 2

Thread: getting prevoius day's date in a query?

  1. #1
    Join Date
    Sep 2007
    Posts
    1

    getting prevoius day's date in a query?

    could anybody help me in getting the previous day's date in a query:
    In sql analyzer, the query "select getdate()-1" returns the previous day's date!
    do we have a db2 equivalent of the above mentioned query.

  2. #2
    Join Date
    Oct 2007
    Posts
    1
    to get previousDay in db2
    current timestamp-1 days

Posting Permissions

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