i have a PostgreSQL table describing lines between two points. It contains two columns, A and B, integers representing the id of a point (described in another table).
But each line is duplicated in the table, as the line going from A to B is the same that the line going from B to A.
I'd like to remove the duplicates, but i can't find an aggregate function working on two columns, to regroup AB and BA lines then to remove one.
Thanks :)
1).that theLinestable contains a record that points topoint_id(1), point_id(2)and also a record that points topoint_id(2), point_id(1).2.That the two lines all have different point_id values, but that when you look in thepointtable, different point_ids can have the same co-ordinates. Could you give examples to clarify?