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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Dates without weekends

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2007-03-20 : 09:03:06
Eileen writes "Hi everyone,
I have two date columns where I need to get the difference between them but WITHOUT WEEKENDS.

This is the sql statement I have with weekends, but I dont know how to take to weekends from the query, any ideas????

"UPDATE PSC_tbl_Request SET Turnaround_Time = DATEDIFF(dd, Date_Submitted, Publish_Date)";

Thanks
Eileen"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-03-20 : 09:06:32
take a look here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=80158


KH

Go to Top of Page
   

- Advertisement -