how can i remove duplicate entry in SQL database when there are some null fields: i have a table Mesure2 that contains duplicate entries, some having null fields, i have removed the other duplicate entries like this:
INSERT Mesures SELECT distinct * FROM Mesures2;
but there is still duplicate entries with null field that prevent me from creating Keys:
MariaDB [sidonie2]> ALTER TABLE Mesures ADD PRIMARY KEY (`N° Fiche`,Date,Angle,Sépar,`Nb Nuits`,CodeObs,Instrument,dimension,Réf,Nota);
ERROR 1062 (23000): Duplicate entry '2928-1892.93-258.6-03.34-2-JNS---LDS-' for key 'PRIMARY'
MariaDB [sidonie2]> select * from Mesures where `N° Fiche` = 2928 and Date = 1892.93;
+-----------+---------+-------+--------+----------+---------+-----------+------------+------+------+
| N° Fiche | Date | Angle | Sépar | Nb Nuits | CodeObs | dimension | Instrument | Réf | Nota |
+-----------+---------+-------+--------+----------+---------+-----------+-----------+------+------+
| 2928 | 1892.93 | 258.6 | 03.34 | 2 | JNS | NULL | NULL | LDS | |
| 2928 | 1892.93 | 258.6 | 03.34 | 2 | JNS | NULL | NULL | LDS | NULL |
+-----------+---------+-------+--------+----------+---------+-----------+------------+------+------+
how can i eliminate duplicate that differs only by a Null and empty same field (here it is Nota field but could be any one else)?