Hello folks,
I've been trying to achieve a SQL result but without any success.
If I have a table that is like this:
I want to achieve a result that is something like this;
Is there a way to do it? Can you please give me some ideas?
Thank you
I've been trying to achieve a SQL result but without any success.
If I have a table that is like this:
Code:
country
-------
Spain
Greece
UK
Spain
Japan
Australia
Japan
Norway
US
France
US
Spain
.
.
.
I want to achieve a result that is something like this;
Code:
country
-------
Spain1
Greece
UK
Spain2
Japan1
Australia
Japan2
Norway
US1
France
US2
Spain3
.
.
.
Is there a way to do it? Can you please give me some ideas?
Thank you