Hi I'm using postgres,
I have three tables.
table 1
id1 | name 
foo ,  jack 
table 2 
id3 | id1 
orange,  foo 
apple, foo
table 3 
id3|description 
orange, vit.c
apple, vit. a & c 
say id1 = foo; what I want is find all the id3 that corresponds to this in table 2 ( in this case its orange and apple) and then return table 3 with all rows that matches with all the id3 in table 2.
whooo thats a mouthful, sorry bout that.  I tried inner join, left join, but keeps returning me many more tables that don't match.  I can do them serially, but I'm wondering if there is way to do it all in step?
If all works out, when I search for foo it should return vit.c and vit. a&c
thanks! Ahdee
 
     
    