How to link two tables and get data from one table based on two dates?

select *
from custtable ct
join timeframetable tft
on ct.customerid = tft.customerid

That was very helpful, indeed. Thanks!