If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > QMF 7.2 Date comparison

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-04-07, 16:49
jaycrib jaycrib is offline
Registered User
 
Join Date: Apr 2007
Posts: 1
Unhappy QMF 7.2 Date comparison

I would like to start out by saying hi and i am struggling with Date comparisons

**First Issue**
I create the column, however the subtraction here is off. I would like to see how many days are between the Q.FINAL_SHIP and CURRENT DATE. i keep getting the (-171 ) error when i use CURRENT DATE so i put in an actual date.

( Q.FINAL_SHIP-'2007-04-04' ) AS SNI,

**Second Issue**
I would like to see items that are more than 60 days old i came up with this statement which doesn't work and was wondering what the heck i can do to fix this.
AND Q.FINAL_SHIP < CURRENT DATE - 60

Please help me if you can
Reply With Quote
  #2 (permalink)  
Old 04-04-07, 18:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You need to supply the exact SQL statements that are giving the error. On the other hand, if you trying to get QMF recognize current date after you extract the data from DB2, then I don't think you can do that. Current date must be in the SQL statement, not Forms part of QMF.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On