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
Solved

Add 90 days to the date value in a column

Posted on 2014-02-20
3
771 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
VB.net and sql server 4 45
sql 2008 how to table join 2 28
Are triggers slow? 7 11
Current Month Filter in Visual Studio 10 22
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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