Solved

Add 90 days to the date value in a column

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

732 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