WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Determining an overlap in time between lines

 
   Home -> Office other -> Getting Started RSS
Next:  Access 2007 Compact Database Fix?  
Author Message
clueless

External


Since: Dec 18, 2007
Posts: 19



(Msg. 1) Posted: Tue Aug 11, 2009 8:46 am
Post subject: Determining an overlap in time between lines
Archived from groups: microsoft>public>access>gettingstarted (more info?)

Hi,
I am trying to determine if there is an overlap in time between tasks of
multiple employees. It does not make a difference if it is 2 different
employees or 2 different tasks, I am only interested if the end time overlaps
with the start time. For example:

Employee Task StartTime EndTime
1. Joe Receiving 01:00 01:41
2. Bob Loading 01:10 01:20
3. Sue Shipping 01:20 01:28

Line 1 and Line 2 - end time of line 1 overlaps with start time of line 2.
Is there a way of flagging this in my report? Thanks for your help.
--
clueless
Back to top
Login to vote
John Spencer

External


Since: Apr 09, 2008
Posts: 737



(Msg. 2) Posted: Tue Aug 11, 2009 12:15 pm
Post subject: Re: Determining an overlap in time between lines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SELECT Employee, Task, StartTime, EndTime
, Exists (SELECT * FROM SomeTable As Temp
WHERE Temp.StartTime > SomeTable.StartTime
AND Temp.StartTime < SomeTable.EndTime)
FROM SomeTable

That should return TRUE for line 2. If you want true for both line 1 and 2
then the criteria becomes more complex.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

clueless wrote:
> Hi,
> I am trying to determine if there is an overlap in time between tasks of
> multiple employees. It does not make a difference if it is 2 different
> employees or 2 different tasks, I am only interested if the end time overlaps
> with the start time. For example:
>
> Employee Task StartTime EndTime
> 1. Joe Receiving 01:00 01:41
> 2. Bob Loading 01:10 01:20
> 3. Sue Shipping 01:20 01:28
>
> Line 1 and Line 2 - end time of line 1 overlaps with start time of line 2.
> Is there a way of flagging this in my report? Thanks for your help.
Back to top
Login to vote
clueless

External


Since: Dec 18, 2007
Posts: 19



(Msg. 3) Posted: Tue Aug 11, 2009 12:15 pm
Post subject: Re: Determining an overlap in time between lines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank You!!!! Perfect! Have a great day.
--
clueless


"John Spencer" wrote:

> SELECT Employee, Task, StartTime, EndTime
> , Exists (SELECT * FROM SomeTable As Temp
> WHERE Temp.StartTime > SomeTable.StartTime
> AND Temp.StartTime < SomeTable.EndTime)
> FROM SomeTable
>
> That should return TRUE for line 2. If you want true for both line 1 and 2
> then the criteria becomes more complex.
>
> John Spencer
> Access MVP 2002-2005, 2007-2009
> The Hilltop Institute
> University of Maryland Baltimore County
>
> clueless wrote:
> > Hi,
> > I am trying to determine if there is an overlap in time between tasks of
> > multiple employees. It does not make a difference if it is 2 different
> > employees or 2 different tasks, I am only interested if the end time overlaps
> > with the start time. For example:
> >
> > Employee Task StartTime EndTime
> > 1. Joe Receiving 01:00 01:41
> > 2. Bob Loading 01:10 01:20
> > 3. Sue Shipping 01:20 01:28
> >
> > Line 1 and Line 2 - end time of line 1 overlaps with start time of line 2.
> > Is there a way of flagging this in my report? Thanks for your help.
>
Back to top
Login to vote
clueless

External


Since: Dec 18, 2007
Posts: 19



(Msg. 4) Posted: Tue Aug 11, 2009 2:39 pm
Post subject: Re: Determining an overlap in time between lines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi John,
Sorry to bother you but I just notice something on my report. I have it
showing "yes" if it overlaps and out of 74, 1 should and does not.

Employee Task StartTime EndTime Overlap
1. X Loading 16:10 16:30 Yes
2. A Receiving 16:14 16:30
3. F Shipping 16:30 16:40
4. J Picking 16:30 16:50
5. P Loading 16:50 17:25

Line 3 should show "yes" but it doesn't. Any suggestions on how to correct
this.
Thanks again for all your help,
--
clueless


"John Spencer" wrote:

> SELECT Employee, Task, StartTime, EndTime
> , Exists (SELECT * FROM SomeTable As Temp
> WHERE Temp.StartTime > SomeTable.StartTime
> AND Temp.StartTime < SomeTable.EndTime)
> FROM SomeTable
>
> That should return TRUE for line 2. If you want true for both line 1 and 2
> then the criteria becomes more complex.
>
> John Spencer
> Access MVP 2002-2005, 2007-2009
> The Hilltop Institute
> University of Maryland Baltimore County
>
> clueless wrote:
> > Hi,
> > I am trying to determine if there is an overlap in time between tasks of
> > multiple employees. It does not make a difference if it is 2 different
> > employees or 2 different tasks, I am only interested if the end time overlaps
> > with the start time. For example:
> >
> > Employee Task StartTime EndTime
> > 1. Joe Receiving 01:00 01:41
> > 2. Bob Loading 01:10 01:20
> > 3. Sue Shipping 01:20 01:28
> >
> > Line 1 and Line 2 - end time of line 1 overlaps with start time of line 2.
> > Is there a way of flagging this in my report? Thanks for your help.
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Getting Started All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support