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.
| Author |
Topic |
|
baggerus21
Starting Member
1 Post |
Posted - 2012-09-17 : 06:55:08
|
Hi AllI can't find a simple way in sql to display the number of business hours (9-5 monday to friday and exclusing weekends) between two dates [EventDateTime] and [VerifyDateTime]. I want to display in a new table the Eventdatetime field, the verifydatetimefield and the number of business hours as a new field. It's working on a table with over 200000 records in there. At the moment i just used the datediff(h,....) query, any ideas? I'd appreciate your advice so much as this is due in tomorrow and I need to get ahead with it;Cheers all Dave Bathanks |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-09-17 : 08:23:12
|
| Take a look at Visakh's blog here to see if that would help you: http://visakhm.blogspot.com/search/label/business%20hours |
 |
|
|
|
|
|