
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | Query time range hi. i was wondering how i would set a time range so that the
DBatch.start field will display a range from 6PM yesterday or
tuesday(any weekday) to 5:59PM the next day i.e. today/wednesday.
Here's what i have:
SELECT DBatch.batchname, DBatch.start AS StartTime, DBatch.end,
DBatch.duration, DBatch.recordcount
FROM DBatch
WHERE ????
ORDER BY DBatch.start; Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/14000-query-time-range.htmlReference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000
Both the DBatch.start and the DBatch.end fields are in the Date/Time
format.
Thanks. *
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh! | 
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | Re: Query time range if you don't mind next /or previous day to be a holiday, saturday or sunday
SELECT DBatch.batchname, DBatch.start AS StartTime, DBatch.end,
DBatch.duration, DBatch.recordcount
FROM DBatch
WHERE DBatch.start >= Date() -1 + 18/24
AND DBatch.start < Date() + 18/24
ORDER BY DBatch.start; Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000
else you'll have to use some calculations in addition
If I'm not mistaken Allen Browne has some excellent code to use to discount
Sa,Su & holidays
HTH
Pieter
And I'm aware 18/24 equals 3/4 equals 0.75 - but it's more understandable
(if not as fast) wrote in message
news:1153946144.151558.186920@b28g2000cwb.googlegr oups.com...
> hi. i was wondering how i would set a time range so that the
> DBatch.start field will display a range from 6PM yesterday or Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000
> tuesday(any weekday) to 5:59PM the next day i.e. today/wednesday.
> Here's what i have:
>
> SELECT DBatch.batchname, DBatch.start AS StartTime, DBatch.end,
> DBatch.duration, DBatch.recordcount
> FROM DBatch
> WHERE ????
> ORDER BY DBatch.start;
>
> Both the DBatch.start and the DBatch.end fields are in the Date/Time
> format.
> Thanks.
> | 
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | Re: Query time range if you don't mind next /or previous day to be a holiday, saturday or sunday
SELECT DBatch.batchname, DBatch.start AS StartTime, DBatch.end,
DBatch.duration, DBatch.recordcount Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000
FROM DBatch
WHERE DBatch.start >= Date() -1 + 18/24
AND DBatch.start < Date() + 18/24
ORDER BY DBatch.start;
else you'll have to use some calculations in addition
If I'm not mistaken Allen Browne has some excellent code to use to discount
Sa,Su & holidays
HTH
Pieter
And I'm aware 18/24 equals 3/4 equals 0.75 - but it's more understandable
(if not as fast) wrote in message
news:1153946144.151558.186920@b28g2000cwb.googlegr oups.com...
> hi. i was wondering how i would set a time range so that the
> DBatch.start field will display a range from 6PM yesterday or
> tuesday(any weekday) to 5:59PM the next day i.e. today/wednesday.
> Here's what i have:
>
> SELECT DBatch.batchname, DBatch.start AS StartTime, DBatch.end,
> DBatch.duration, DBatch.recordcount
> FROM DBatch
> WHERE ????
> ORDER BY DBatch.start;
>
> Both the DBatch.start and the DBatch.end fields are in the Date/Time
> format.
> Thanks.
>
--
----------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 4367 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len | 
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | RE: Query time range Look to the experts for your answers: http://www.mvps.org/access/datetime/index.htmlReference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000
jmonty
"stillwalkingaway@gmail.com" wrote: Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14000
> hi. i was wondering how i would set a time range so that the
> DBatch.start field will display a range from 6PM yesterday or
> tuesday(any weekday) to 5:59PM the next day i.e. today/wednesday.
> Here's what i have:
>
> SELECT DBatch.batchname, DBatch.start AS StartTime, DBatch.end,
> DBatch.duration, DBatch.recordcount
> FROM DBatch
> WHERE ????
> ORDER BY DBatch.start;
>
> Both the DBatch.start and the DBatch.end fields are in the Date/Time
> format.
> Thanks.
>
> | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 53 Views | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |