J
jasonjrowe
Hello,
I have to create a query which will return the total # days a
file has been checked out. The table is set up for two "checkouts"
that can occur in succession, concurrently, or be on-going. For
example:
Checkoutdate1: 1 Jan 06
ReturnDate1: 30 Mar 06
Checkoutdate2: 15 Jan 06
ReturnDate2: 30 Mar 06
I cannot simply subtract the dates and add them together, becasue I
only need the non-overlapping time. In this case it would be 89 days.
Complicating the matter is when I leave a return date blank, or there
is no 2nd Checkout. For example:
Checkoutdate1: 1Jan 06
ReturnDate1: (Null)
Checkoutdate2: 5 Jan 06
Checkoutdate2: 30 Mar 06
Of Course, there are numerous other variables with this situation.
Any suggestions would be greatly appreciated! Thank you.
I have to create a query which will return the total # days a
file has been checked out. The table is set up for two "checkouts"
that can occur in succession, concurrently, or be on-going. For
example:
Checkoutdate1: 1 Jan 06
ReturnDate1: 30 Mar 06
Checkoutdate2: 15 Jan 06
ReturnDate2: 30 Mar 06
I cannot simply subtract the dates and add them together, becasue I
only need the non-overlapping time. In this case it would be 89 days.
Complicating the matter is when I leave a return date blank, or there
is no 2nd Checkout. For example:
Checkoutdate1: 1Jan 06
ReturnDate1: (Null)
Checkoutdate2: 5 Jan 06
Checkoutdate2: 30 Mar 06
Of Course, there are numerous other variables with this situation.
Any suggestions would be greatly appreciated! Thank you.