Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
gigsvoo
Starting Member
1 Post |
Posted - 2001-08-02 : 23:03:16
|
| Hi there all nice developers,I need to write a sql script inside a SP to check whether any records in the table that have the same date, overlapps with any records from a ASP page in the sense that the entry Begin time and End time should either before the begin time or after the end time of any records in the table but not overlapps each other.For more illustration, my idea isEntry Begin Time: 9:00AMEntry End Time: 11:00AMAny records in table begin time: 12:00AMAny records in table end time: 1:00PMResults: OK--Entry Begin Time: 9:00AMEntry End Time: 11:00AMAny records in table begin time: 10:00AMAny records in table end time: 1:00PMResults: Not OKPlease helpThanksDavid Voo |
|
|
|
|
|