I have my database in the following order
id date time user_id visits
---------------------------------------------------------------
1 02/19/13 1361257200 xxxxxxxxx 4699
2 02/20/13 1361343600 xxxxxxxxx 7264
3 02/21/13 1361430000 xxxxxxxxx 5281
4 02/21/13 1361430000 xxxxxxxxx 5281
5 02/22/13 1361516400 xxxxxxxxx 5473
As you can see I have row with id 3 is the same as the row 4 with id 4. I want to delete one of them ONLY (they both should have the same values date, time, user_id, and visits) I also have many other duplicated rows in my data base (hundreds). I have no idea about the query that I have to use for such thing. I tried searching for some solution but they involve having the same id or copying the rows to a new table. Note: I don't have any problem even if I will have to run this query multiple times.