I have a database with two columns:
1. city : amsterdam, rome, london, amsterdam, rome, new york, ...
2. type : red, green, blue, red, green, ...
I have to select from a database the distinct value of columns and put it together.
The result must be like this:
amsterdam red, amsterdam blue, amsterdam green, rome red, rome blue, rome green, london ...
I tried with "select distinct" and with "array_unique", probably in the wrong way, but I can not get the result.