id        date_start        date_end
1         2018-01-01        2018-03-31
2         2018-04-01        2018-06-30
3         2018-07-01        2018-09-30
4         2018-10-01        2018-12-31
As for input I have time_start and time_end. How can I select all rows between those dates by comparing time_start and time_end with both date_start and date_end?
Thank you.
 
     
     
     
     
    