DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 25th, 2004, 09:54 AM
linux_cat linux_cat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 6 linux_cat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 27 sec
Reputation Power: 0
DB2 syntax help

Afternoon, i hope everyone is having a good day as I am not!!!..

I am currently software testing and part of this tedious process is converting developers SQL so it runs in DB2, however i have hit a stumbling block with one of the more coplex options, could someone please tell me how i would re-write::

and timestampadd_day(0,T4."CALENDAR_DATE") > timestampadd_day(28,(now()));

to run in DB2?

Thank you.

Reply With Quote
  #2  
Old October 25th, 2004, 03:10 PM
fractalvibes fractalvibes is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Location: Waco, Texas
Posts: 632 fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 14 h 11 m 13 sec
Reputation Power: 22
Try something like this:
select (YourTimeStampColumn+ 28 DAYS) for the second part.

Don't know what the first part represents:
timestampadd_day(0,T4."CALENDAR_DATE")
are you trying to add 0 days to clanedar_date column???

fv
--------------

Quote:
Originally Posted by linux_cat
Afternoon, i hope everyone is having a good day as I am not!!!..

I am currently software testing and part of this tedious process is converting developers SQL so it runs in DB2, however i have hit a stumbling block with one of the more coplex options, could someone please tell me how i would re-write::

and timestampadd_day(0,T4."CALENDAR_DATE") > timestampadd_day(28,(now()));

to run in DB2?

Thank you.
__________________
...because that is the way we have always done it. We've been doing it like that for 80 Years! (How do we change that mindset?)

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > DB2 syntax help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway