I have this table
table_a user_id name 1 A 2 B table_b user_id event time 1 X 2020-01-01 17:00:00 1 Y 2020-01-0