table_A
|event_code | reg_time |description|
|--| --| --|
|apple | 2023-10-01 00:00:00| it's apple|
|orange | 2023-10-01 00:00:00 | it's orange|
|grape | 2023-10-01 00:00:00| it's grape|
|apple2 | 2023-11-01 00:00:00| big apple|
|orange | 2023-11-01 00:00:00 | big orage|
|grape | 2023-11-01 00:00:00| big grape|
event_code |
reg_time |
description |
apple |
2023-10-01 00:00:00 |
it's apple |
orange |
2023-10-01 00:00:00 |
it's orange |
grape |
2023-10-01 00:00:00 |
it's grape |
apple2 |
2023-11-01 00:00:00 |
big apple |
orange |
2023-11-01 00:00:00 |
big orage |
grape |
2023-11-01 00:00:00 |
big grape |
table_B
|event_code | event_time |user_id|
|--| --| -- |
|apple | 2023-10-10 00:00:00| 0001|
|orange | 2023-10-21 00:00:00 | 0001|
|grape | 2023-10-30 00:00:00| 0001|
|apple2 | 2023-11-11 00:00:00| 0001|
|orange | 2023-11-21 00:00:00 | 0001|
|grape | 2023-11-31 00:00:00| 0001|
event_code |
event_time |
user_id |
apple |
2023-10-10 00:00:00 |
0001 |
orange |
2023-10-21 00:00:00 |
0001 |
grape |
2023-10-30 00:00:00 |
0001 |
apple2 |
2023-11-11 00:00:00 |
0001 |
orange |
2023-11-21 00:00:00 |
0001 |
grape |
2023-11-31 00:00:00 |
0001 |