See if a datetime is between another records datetime
Hopefully I can explain myself on this one.
I work for a trucking company and we trying to see if we have overlapping times.
I have a query that tells me the StartTime and EndTime for trips based on a specific vehiicle that performs the services. These are two columns and look something like so:
I would like to add a column that checks for overlapping times. So lets say I have an Order xyx and the start time falls within that of the times already indicated, then have a column that basically flags it using a SELECT Query.
An example would be lets say Order 'xyz' above has the start time of '2012-12-28 11:45:26.000' well that would be flagged, because using the example I have above it can't be because during that time, Order 123 was being performed. Same would go for the End Time.
Just trying to figure out an easy way of identify those that overlap because my trucks can't be at two different places at the same time if that makes sense?
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Thanks for both of your help and sorry for my delay.
I was able to get it to work with the help of both of you :)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
I was able to get it to work with the help of both of you :)