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 > Date Manipulation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-03, 20:25
sesunda sesunda is offline
Registered User
 
Join Date: Nov 2003
Posts: 1
Date Manipulation

I need to retreive data from a table with date column having dates 3 months earlier. Please let me know the date function to do the necessary manipulation.
Reply With Quote
  #2 (permalink)  
Old 11-11-03, 03:38
msateeshkumar msateeshkumar is offline
Registered User
 
Join Date: May 2003
Location: Phoenix, US
Posts: 39
Re: Date Manipulation

Hi,

Probably you can use the Month function available

select * from tab1 where abs(month(col1) - month(currentdate)) > 3

Thanks
Sateesh

Quote:
Originally posted by sesunda
I need to retreive data from a table with date column having dates 3 months earlier. Please let me know the date function to do the necessary manipulation.
__________________
OCP,IBM UDB,SYBASE DBA
TCS, BANGALORE, INDIA
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