Solved

Date Query

Posted on 2011-09-27
2
249 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
Comment Utility
use this
 
select dateadd(day,-3,it_dtedelv) as data3, it_dtedelv from yourtable

Open in new window

0
 

Author Comment

by:pepps11976
Comment Utility
brilliant thanks
0

Featured Post

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
A procedure for exporting installed hotfix details of remote computers using powershell
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…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

763 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

7 Experts available now in Live!

Get 1:1 Help Now