MySQL Forums
Forum List  »  Newbie

Re: Joining two tables on time stamps
Posted by: Peter Brawley
Date: May 23, 2021 07:08AM

How about a theta join ...

select ...
from a
join b on b.timestamp between addtime(a.timestamp,'-00:00:04') and ddtime(a.timestamp,'00:00:04')
group by ...

Options: ReplyQuote


Subject
Written By
Posted
Re: Joining two tables on time stamps
May 23, 2021 07:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.