I have two tables tablea and tableb. Their sturcture is:
tablea
id serial
name varchar
alg integer[]
tableb
id serial
description varchar
in tablea.alg field I have multiple numbers of substances like {1,17,55,97} and in the query I want to get names instead of numbers like:
name | substances
organism1 | substance 1, substance 17, substance 55, substance 97
Can any1 suggest the right query?
Answer to simmilar question is on StackOwerflow question, but how to use tables instead of fixed array values?
Thank you...