Skip to content
Snippets Groups Projects
Commit 93937b2b authored by Erik Johnston's avatar Erik Johnston
Browse files

Remove duplicate rows

parent c5365dee
No related branches found
No related tags found
No related merge requests found
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
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment