[sql]concatenate data from diff tables in one row?
I have a big select but I need to make 3 cursors or 3 functions to concatenate data from different tables into one row, without making temporary tables so I can have the result of my select. I was supposed to get it done this week...if someone can help me, pls tks
my sql script returns smth like this;
contract1, a, b, c, d, aaaaa, doc1
contract1, a, b, c, d, bbbbb, doc1
contract1, a, b, c, d, ccccc, doc2
contract1, a, b, c, d, ddddd, doc2
and i need in the end to get the result in one line
contract1, a, b, c, d, aaaaa | bbbbb | ccccc | ddddd , doc1 | doc2
aaaaa | bbbbb is aaaaa concatenated with bbbbb in one single row, but the only connection I can make with them is the contract which is in another table