Need a Query to find a Older date that is less than 90 business days

  • select DateAdd(dd,-90,getdate()) it gives the 90 days older date but i want to exlude the weekdays and holidays (saturday ,sunday,holiday)

    Any help would be appreciated.

    As we dont have permission to call a function or Sp in high level environments looking for a simple query .

  • use a calendar table, omit all the days that fall on Sat/Sun and Holidays. Sort in descending order and return the TOP value?

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply