blob: 65c97b5e2ff7675f017e8a1c1828b642aa8e2ed2 (
plain)
1
2
3
4
5
6
7
8
9
|
DELETE FROM event_to_state_groups WHERE state_group not in (
SELECT MAX(state_group) FROM event_to_state_groups GROUP BY event_id
);
DELETE FROM event_to_state_groups WHERE rowid not in (
SELECT MIN(rowid) FROM event_to_state_groups GROUP BY event_id
);
|