问题描述
我希望根据扫描的开始和完成日期查找重叠扫描,这些扫描可以在几秒钟内完成。
我的表结构:
ApplicationID ScanId ReleaseId StartedDate CompletedDate
我正在寻找在同一 ApplicationID 上与另一个 ScanID 重叠的 StartedDate 和 CompletedDate 的所有 ScanId
表格数据:
ApplicationID | ScanID | ReleaseID | StartedDate | CompletedDate 129 150 291 2021-03-15 09:10:03 | 2021-03-15 09:34:08 128 157 293 2021-03-15 09:12:05 | 2021-03-15 09:27:06 128 157 294 2021-03-15 09:14:06 | 2021-03-15 09:14:10
场景是:
Overlapping Scan within another scan (B.Starteddate GREATER THAN A.StartedDate and B.Completeddate LES THAN A.CompletedDate) A------------------------------A B------------------B Overlapping Scan Starts before another scan and ends before the other scan (B.stareddated LESS THAN A.starteddate AND B.CompletedDate GREATER THAN A.StartedDate) A-------------------------A B-----------------B Overlapping Scan Ends after after another scan and ends after the other scan (B.Starteddate between A.starteddate and A.completeddate AND B.CompletedDate GREATER THAN A.CompletedDate) A-----------------------A B----------------------B Scan starts and ends within Overlapping Scan start and end (A.StartedDate GREATER THAN B.StartedDate AND A.CompletedDate LESS THAN B.CompletedDate) A--------------A B-------------------------------B
请注意,有些扫描需要几秒钟。
任何帮助将不胜感激
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)