Skip to content

Instantly share code, notes, and snippets.

@IftekherSunny
Created July 31, 2018 08:54
Show Gist options
  • Save IftekherSunny/c2102d17a4e79f987195beae523a5538 to your computer and use it in GitHub Desktop.
Save IftekherSunny/c2102d17a4e79f987195beae523a5538 to your computer and use it in GitHub Desktop.
CREATE TABLE broadcast_queues_temp
LIKE broadcast_queues;
INSERT INTO broadcast_queues_temp
SELECT *
FROM broadcast_queues
GROUP BY subscriber_id;
DROP TABLE broadcast_queues;
ALTER TABLE broadcast_queues_temp
RENAME TO broadcast_queues;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment