Problem: I am not sure how to go about deleting all "duplicate" records so that only distinct records are left.
So from this:
╔══════╦════════════╦════════╦════╗
║ date ║ dupe_count ║ field1 ║ id ║
╠══════╬════════════╬════════╬════╣
║ x ║ 48 ║ y ║ a ║
║ x ║ 48 ║ y ║ b ║
║ x ║ 48 ║ y ║ c ║
║ x ║ 48 ║ y ║ d ║
║ x ║ 48 ║ y ║ e ║
║ x ║ 48 ║ y ║ f ║
║ x ║ 48 ║ y ║ g ║
║ x ║ 48 ║ y ║ h ║
║ x ║ 48 ║ y ║ i ║
╚══════╩════════════╩════════╩════╝
To this:
╔══════╦════════════╦════════╦════╗
║ date ║ dupe_count ║ field1 ║ id ║
╠══════╬════════════╬════════╬════╣
║ x ║ 1 ║ y ║ a ║
╚══════╩════════════╩════════╩════╝
Any ideas?