andey/bestofama

View on GitHub
sql/DELETE_DUPLICATE_OPS_USERS.sql

Summary

Maintainability
Test Coverage
DELETE FROM ops_users t WHERE EXISTS (SELECT 1 FROM ops_users t1 WHERE t1.op_id = t.op_id AND t1.user_id = t.user_id AND t1.ctid > t.ctid)