SQL Previous Business Day Function
This is a simple function for MS SQL that can make reporting so much easier by finding the previous business day.
Setup the function:
CREATE FUNCTION [dbo].[fn_prevbusday](@date DATETIME)
RETURNSDATETIMEAS
BEGIN
DECLARE...