Solved

Add 90 days to the date value in a column

Posted on 2014-02-20
3
751 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL query with cast 38 43
SQL NULL vs Blank 26 36
SSRS 2012 r2 - Parm Drop Down has Date/Time 12 33
Query Syntax 17 36
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

778 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