i have a table with only one column consisiting of 5 colours-
colour
-------
red
black
white
green
orange
I want to get all the combinations like
(red,orange) (black,white) . . . etc except the identical ones.i have tried to cross join the table with itself .
select *
from table1 cross join table1
but i did not get the desired answer.it returned all the combinations.also identical ones.how can i get it???is there any other way to do this without creating another table???