previousTab: WITH ranked_tabs AS ( SELECT id, timestamp, LAG(id) OVER (ORDER BY timestamp) as prev_tab_id FROM tab ) SELECT prev_tab_id FROM ranked_tabs WHERE id ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results