I am using a simple database to try to figure out how to look at procedural overlaps.
I have 6 columns and one is a pk Proc_id. What I am trying to figure out is this:
Four of the columns are Start_time, Start_date, End_time, End_date. I have concatenated the Start_time and Start_date and cast them to a timestamp, same goes for end time and date but I need to create is a range so that I can see which unique procedures Proc_id overlap each other. I am pretty sure I have to Union the same table to solve this and have many ideas but I can't get my range set...First off I can't set the time stamp AS anything to make them comareable. Secondly if I don't convert them to timestamps I can't use overlap, right???
I have 6 columns and one is a pk Proc_id. What I am trying to figure out is this:
Four of the columns are Start_time, Start_date, End_time, End_date. I have concatenated the Start_time and Start_date and cast them to a timestamp, same goes for end time and date but I need to create is a range so that I can see which unique procedures Proc_id overlap each other. I am pretty sure I have to Union the same table to solve this and have many ideas but I can't get my range set...First off I can't set the time stamp AS anything to make them comareable. Secondly if I don't convert them to timestamps I can't use overlap, right???