Solved

Add 90 days to the date value in a column

Posted on 2014-02-20
3
717 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
3 Comments
 
LVL 35

Accepted Solution

by:
David Todd earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now