I\'m stuck with a sql query.
Consider a table with structure like follows - a list of actions with timestamps. The idea is to reduce the number of rows if there is a