Table log -------------------------- id | timestamp -------------------------- 1 | 100000000 2 | 100000300 3 | 100000600 Table data -------------------------- id | timestamp | data -------------------------- 1 | 100000000 | test1 2 | 100000000 | test2 3 | 100000300 | test3 4 | 100000300 | test3 5 | 100000600 | test5