sql period overlap

Solutions on MaxInterview for sql period overlap by the best coders in the world

showing results for - "sql period overlap"
Deana
21 Mar 2016
1-- table1          <-----row 1 interval------->
2-- table2  <---find this--> <--and this--> <--and this-->
3
4SELECT * 
5FROM table1,table2 
6WHERE table2.start <= table1.end 
7AND (table2.end IS NULL OR table2.end >= table1.start)