Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL Date functions

Author  Topic 

Jeskit@hotmail.co.uk
Starting Member

20 Posts

Posted - 2007-12-05 : 14:32:47
Hi SQL Gurus,

i'm new to sql and i'm working on a hoilday datebase and i need to create sql query where the finish and start dates are shown but i only have the finish date and the duration of the hoilday and i'm not sure how to show the start date.

can anyone help me

thanks

jessica

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-12-05 : 15:27:50
SELECT DATEADD(DAY, - Duration, EndDate) AS StartDate
FROM Table1



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Jeskit@hotmail.co.uk
Starting Member

20 Posts

Posted - 2007-12-06 : 04:07:30
thank you very much
Go to Top of Page
   

- Advertisement -