The scenario: You've made a superb script where users can vote for images but you haven't put a failsafe on the POST meaning that some users end up finding a way to vote multiple times for an image in one go by refreshing their browser.
The problem: You now have to clean up a table to reduce votes so that they are spaced by at least 1 hour intervals. For example:
photo_id voter_id date_vote
54321 123 28th june 2011 16h46 57s
54321 123 28th june 2011 16h47 12s <= delete
54321 123 28th june 2011 16h47 35s <= delete
54321 123 28th june 2011 16h47 52s <= delete
54321 123 28th june 2011 16h48 22s <= delete
...
54321 123 28th june 2011 17h47 05s <= keep
Would this be possible through one query or a combination of successive queries?