For the table:
index timestamp real 1 idx1-1 0,1 2 idx2-1 0,2 3 idx3-1 0,1 4 idx4-1 0,3 1 idx1-2 0,4 2 idx2-2 0,2 4 idx4-2 0,5 3 idx3-2 0,6 1 idx1-3 0,1 3 idx3-3 0,3 4 idx4-3 0,4 2 idx2-3 0,1 In the timestamp column, the time is in milliseconds (for convenience, it showed how index X is the order for the index).
Is it possible to get a table of the form from this table:
index div 1 столбец real cтроки idx1-3 / столбец real cтроки idx1-2 2 столбец real cтроки idx2-3 / столбец real cтроки idx2-2 3 столбец real cтроки idx3-3 / столбец real cтроки idx3-2 4 столбец real cтроки idx4-3 / столбец real cтроки idx4-2 Those. for index X, the last line sorted by timestamp divided by the penultimate