Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Add 90 days to the date value in a column

Posted on 2014-02-20
3
Medium Priority
?
964 Views
Last Modified: 2014-02-20
I have a column  NXTCNTDT that has a date value I wan to increase the value in that column by 90 days

UPDATE    IV00102
SET              NXTCNTDT = '+90 of the current value in this column '
0
Comment
Question by:skull52
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 35

Accepted Solution

by:
David Todd earned 2000 total points
ID: 39874628
Hi

update IV00102
set nxtcntdt = dateadd( day, 90, nxtcntdt )
;

HTH
  David
0
 
LVL 11

Expert Comment

by:John_Vidmar
ID: 39874633
UPDATE	IV00102
SET	NXTCNTDT = dateadd(dd, 90, NXTCNTDT )

Open in new window

0
 

Author Comment

by:skull52
ID: 39875203
Thanks, for the quick response, David beat you to it John :)
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question