I have a table news
with 48 columns
The table has some values like so:
ID|title |date |.......
1|Apple iphone 6 |2014-08-23
2|Samsung Galaxy s5|2014-08-23
3|LG G3 |2014-08-25
4|Apple iphone 6 |2014-08-25
5|HTC One m8 |2014-08-27
The "title" value is duplicated in id 1
and 4
(Apple iphone 6
)
I want to keep the just last ID row in news table and delete the other older rows.
So in the above example I want to delete row with the ID 1
, keep the last id (4
) which has the same title column value.