I have a table where the columns author1 and author2 have mirror data like (a,b) and (b,a). But I don't want the data to be redundant so a SQL query is needed for eliminating records that have (b,a) if (a,b) already exists.
author1 author2 No of Publications
Anna Spagnolli Luciano Gamberini 115
Luciano Gamberini Anna Spagnolli 115
Anna Spagnolli Giuseppe Riva 66
Giuseppe Riva Anna Spagnolli 66
Giuseppe Riva Luciano Gamberini 60
Luciano Gamberini Giuseppe Riva 60
Achim Jung Anna Spagnolli 33
Anna Spagnolli Achim Jung 33
Anna Spagnolli John A. Waterworth 33
John A. Waterworth Anna Spagnolli 33
For eg, I don't want the second record here because it already exists in the first record