Go Back   Rhinocerus > Newsgroup > Newsgroup comp.databases.ms-access

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-2006, 03:12 AM
tboyd24@hotmail.com
Guest
 
Posts: n/a
Default Help with Query

Is there a way to show data based on if dates are consecutive. Im try
to show only the people who have consecutive Vac days out of a list of
20,000 records.

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 06-15-2006, 04:41 AM
salad
Guest
 
Posts: n/a
Default Re: Help with Query

tboyd24@hotmail.com wrote:
> Is there a way to show data based on if dates are consecutive. Im try
> to show only the people who have consecutive Vac days out of a list of
> 20,000 records.
>

At first I thought you could get the max and min dates and count grouped
on employeeID and save to a query. Then Select those where
maxday-minday+1 = countofdays. But that wouldn't work because the date
range might be so large...maybe data over 2 weeks...there'd be gaps
because of weekends.

The best thing to do would be to write a function with your rules and
call the function within the query.

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to incorporate/assign variables within SQL query? Howard Schreier Newsgroup comp.soft-sys.sas 0 04-25-2008 03:04 AM
Re: How to incorporate/assign variables within SQL query? Irin later Newsgroup comp.soft-sys.sas 0 04-24-2008 07:32 PM
Re: How to incorporate/assign variables within SQL query? Sigurd Hermansen Newsgroup comp.soft-sys.sas 0 04-24-2008 03:46 PM



All times are GMT. The time now is 02:27 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.