There is N no. of strings.
let's say 'foo', 'bar', 'chi', 'xyz', 'moo'
.
I want to form a dummy table, say X for joining with another table, say Y which has those strings in one of the column i.e name in . Trying to pull out data by running the below query.
select Y.name, Y.age
from(**select ('foo', 'bar', 'chi', 'xyz', 'moo') as name**) X
left join Y on X.name = Y.name;
I know that text within ** is not the proper SQL syntax, but looking for something similar to have to run query in Oracle SQL.
Any suggestion or ideas most welcome.