select regexp_replace('home care','home care','care') as column1,
regexp_replace('home care','home care','home') as column2
from WORDLIST w
output:
column1 column2
care home
and then
select regexp_replace('care home','care home','home') as column3,
regexp_replace('care home','care home','care') as column4
from WORDLIST w
output:
column3 column4
home care
So for now I want to join these two regular expression together by nesting one select statement to another one without "join" words and also no where clause, the output should be as following:
column1 column2 column3 column4
care home home care
I would appreciate for any suggestion!