Solved

Date Query

Posted on 2011-09-27
2
250 Views
Last Modified: 2012-05-12
Hi
I have a date column in my view "it_dtedelv"  and i need to create another column that would minus 3 days from the it_dtedelv column, so if the it_dtedelv column had a value of 2011-09-05

the new column would show a value of 2011-09-02

John
0
Comment
Question by:pepps11976
2 Comments
 
LVL 7

Accepted Solution

by:
kemi67 earned 500 total points
ID: 36708345
use this
 
select dateadd(day,-3,it_dtedelv) as data3, it_dtedelv from yourtable

Open in new window

0
 

Author Comment

by:pepps11976
ID: 36708371
brilliant thanks
0

Featured Post

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

912 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

20 Experts available now in Live!

Get 1:1 Help Now