I have a table which stores jobs.
Jobs has columns:
jbid
submitdate
enddate
dates stored as:
submitdate
2004-07-27 16:08:19.757
---
---
enddate
2004-07-27 16:10:19.757
--
2004-07-27 10:18:19.757
Some Jobs overlap.I need to display the jobs that are concurrently running when a particular date and time is given( some jobs may start at 10:20am and may end at 12:00pm on the same day,others for eg may start at 10:20 am and end at 10:00am the next day)
Can someone would help me with a query for this
Thanks
Bill
Jobs has columns:
jbid
submitdate
enddate
dates stored as:
submitdate
2004-07-27 16:08:19.757
---
---
enddate
2004-07-27 16:10:19.757
--
2004-07-27 10:18:19.757
Some Jobs overlap.I need to display the jobs that are concurrently running when a particular date and time is given( some jobs may start at 10:20am and may end at 12:00pm on the same day,others for eg may start at 10:20 am and end at 10:00am the next day)
Can someone would help me with a query for this
Thanks
Bill