Number of Weekdays between two dates - Set Based

Inspired by a post here at SQLServerCentral, I wrote this function to calculate the number of days between two dates that are weekdays. In order to achieve this I used a common SQL table that contains a sequence of number for 1 to X. This was used as an input to the datediff function, and […]

2004-12-24 (first published: )

285 reads

Blogs

Last Week Reading (2019-07-21)

By

Another week passed. Look what did I find during that time. Press British Airways...

The Data platform has evolved – so too must the DBA.

By

This blog post is around the changing landscape of both SQL Server and the...

What does the Machine Learning process look like?

By

This is the second article in the Machine Learning area. I have explained a...

Read the latest Blogs

Forums

Trying to group 2 rows into a single line

By louislsh

Hi all, i am stuck trying to group 2 lines into 1. Hope someone...

SSMS via Citrix could not query An Microsoft Access Database despite of RDP

By Thinky Night

Hi dears, I will explain the case: I have an MS Access Database on...

Unable to group 2 records into a single line result

By louislsh

Hi all, i am stuck trying to group 2 lines into 1. Hope someone...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers