Quote:
Originally posted by Marcus_A
DB2 does allow for correlated sub-queries. But this looks like a regular join to me.
Select tablea.field1, tableb.field2
from tablea, tableb
where tableb.field1 = tablesa.field1
|
Thanks Marcus,
But , i have given just an example, i need to dispaly fileds in columns wise, where it is actually in row wise.
ex
Table a
fld1 fld2
x y
Table b
fld1 fld2
x 1
x 2
x 3
i want to display
x y 1 2 3
where tablea.x = tableb.x
but the tableb may or may not have all the three rows
Could you give me a solution
Also let me know how to use a correlated subquery, i have mentioned in my first post in DB2