2
Good morning,
I have a table "Patient" with the columns (NO, Event, Glycozyme, Name, Glycemia, Date, Reading), which is the best way to delete all the repeated lines? Looking on the internet I tried the following code but it didn’t work...
String sql = "DELETE a FROM Paciente AS a, Paciente AS b WHERE a.NO=b.NO AND a.Id < b.Id";
SqlCeCommand comando = new SqlCeCommand(sql, con);
comando.ExecuteNonQuery();
con.Close();
Your code is like in that reply. What didn’t work? Give an example of the data in your table.
– Rafael Tavares
I rephrased the question, sorry.
– Caio Cesar
This answers your question? How to remove duplicate lines efficiently?
– Lucas
I saw this post but this giving error as shown in the first picture... You know tell me what could be this error?
– Caio Cesar