How to delete duplicate rows with SQL? -


I have a table with some lines. Every line has a date field. Right now, it can be a duplicate of a date, I have to delete all duplicates and store the row with only the highest id . How can SQL queries be used?

Now:

  Date ID '07 / 07 '1 '07 / 07' 2 '07 / 07 '3 '07 What do I need:  < Pre>  date id '07 / 07 '3 '07 / 05' 5  / code> 

Delete
  from the table (select MAX MAX from the table) by date);  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -