Excluding weekend dates from calculated data pull
- From: Wells, Carrie E <WellsCarrieE@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 08:43:25 -0700
I have a business need to display some date specific data to a selcect group
of users 3 bussiness days before everyone else is allowed to see it.
THere are many fields I will be displaying across many tables. The date I am
using is ONLY in the primary table (meaning I don't have to include or
exclude data based on a date match from the other tables).
What I need to know is if there is a way in the SQL Query to not count the
weekend days as part of the 3 bussiness days. My query right now uses "WHERE
datafield < (GetDate + 5)". But this lets the users see data for the week's
Friday on the week's Monday. Not acceptable. If I only use "WHERE datafield <
(GetDate + 3) Then data to been displayed on This week's Tuesday can not be
seen on the previous Friday. Also Not Acceptable.
Any ideas?
Thanks.
--
Carrie E. Wells
Web Architect/Developer
Oh, and if Ihave this posted int eh wrong place tell me where to put it an I
move it.
.
- Follow-Ups:
- Re: Excluding weekend dates from calculated data pull
- From: Hugo Kornelis
- Re: Excluding weekend dates from calculated data pull
- Prev by Date: Re: hierarchy structure
- Next by Date: Keyword syntax error
- Previous by thread: hierarchy structure
- Next by thread: Re: Excluding weekend dates from calculated data pull
- Index(es):
Relevant Pages
|