Possible Duplicate:
Remove duplicate rows from table with join
My table looks like this:
a,b,c,d,date
How to remove all rows with same a,b,c and d except row with latest date?
There is some rows, that has a and b same and c and d NOT same.
Try this:
Check this SQL FIDDLE DEMO