I need to remove all duplicates records that have have the same stationId and only keep one record that has the latest dateUpdated
stationId is varchar(20)
dateUpdated is datetime
I usually remove duplicates this the following, but this time I don't think it will work
ALTER IGNORE TABLE table ADD UNIQUE KEY idx1(title);