Quantcast
Channel: Answers for "eliminate dates from table1 that do not fall into a range of dates in table2"
Browsing latest articles
Browse All 4 View Live

Answer by ThomasRushton

Something along these lines? SELECT t1.* FROM t1 OUTER JOIN t2 ON t1.date1 >= t2.startdte AND t1.date1

View Article



Answer by Kev Riley

select t1.date1 from table1 t1 left join table2 t2 on t1.membid = t2.id and t1.date1 between t2.startdte and t2.enddte where t2.startdte is null

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images