Last active
November 1, 2022 03:04
-
-
Save vjyanand/332de494207535e94719b837d5514a27 to your computer and use it in GitHub Desktop.
APNS_DUPLICATE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete FROM apns_master WHERE id IN (SELECT id FROM (SELECT id, token, updated, ROW_NUMBER() OVER w AS rnum FROM apns_master WINDOW w AS (PARTITION BY token ORDER BY updated DESC)) t WHERE t.rnum > 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment