0
I’m having a problem with a table that has duplicate data. Duplicate data is identified through an ID, where each row has the identifier and a date, how can I erase all data with more than 1 record from in the table, leave only the most recent record?
The database is a MS SQL SERVER, that is, the script should make, in the list below, eliminates the 4 oldest lines:
ID DATA
17081618585 | 18.02.02 18:42:41
17081618585 | 18.02.02 19:30:41
17081618585 | 18.02.02 20:42:41
17081618585 | 18.02.02 20:42:41
17081618585 | 18.02.02 22:42:42
in case it would just stay
17081618585 | 18.02.02 22:42:42
?– Marconi