Results 1 to 15 of 15

Thread: Comparing Time Overlap

Threaded View

  1. #1

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677

    Comparing Time Overlap

    I have a query that gets me all Labor Transactions for an employee for a certain day. I take the difference between the start and stop times to get the total time for that transaction. This works great until the user is doing multiple things at once. If I were to have this data:

    Code:
    CLOCK_IN                    CLOCK_OUT                    TOTAL
    -----------------------------------------------------------------------------
    3.83                              13.45                              9.62
    3.83                              13.47                              9.64
    10.00                            16.47                              6.47
    -----------------------------------------------------------------------------
                                                                               25.73
    Those are the only 3 Labor Transactions for this particular employee. If the times didn't overlap, it would work perfect as you'd get a good distinction of how long the person was actually working but since the times overlap, I am getting bad data. Can someone give me an idea of how to approach this? Since all three times overlap, I theoretically could just take the largest TOTAL time and that would be that but what if you had this:

    Code:
    CLOCK_IN                    CLOCK_OUT                    TOTAL
    -----------------------------------------------------------------------------
    3.83                              13.45                              9.62
    3.83                              13.47                              9.64
    10.00                            16.47                              6.47
    17.25                            18.00                              0.75
    -----------------------------------------------------------------------------
                                                                               26.48
    ? Can someone help me out? Thanks, Jeremy
    Last edited by JCScoobyRS; Sep 25th, 2003 at 09:26 AM.
    He who listens well, speaks well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width