select * from custtable ct join timeframetable tft on ct.customerid = tft.customerid
That was very helpful, indeed. Thanks!