HI,
I have a db table where first two columns are
HOME and NEIGHBOUR and simplistic data in these columns
is
HOME NEIGHBOUR
a b
a c
a d
b a
b c
b d
c a
c b
c d
d a
d b
d c
Now, as you can see from the data, that same pair can be
presented in two ways e.g. a,b <-> b,a.
How to build a select query that fetches same pair only ones. Created help_table would have data like this
HOME NEIGHBOUR
a b
a c
a d
b c
b d
c d
BIG Thank you, on addvance
I have a db table where first two columns are
HOME and NEIGHBOUR and simplistic data in these columns
is
HOME NEIGHBOUR
a b
a c
a d
b a
b c
b d
c a
c b
c d
d a
d b
d c
Now, as you can see from the data, that same pair can be
presented in two ways e.g. a,b <-> b,a.
How to build a select query that fetches same pair only ones. Created help_table would have data like this
HOME NEIGHBOUR
a b
a c
a d
b c
b d
c d
BIG Thank you, on addvance