Hi,
I am using db2 ese v8.1.4a on win2k platform.
I have table1 and table2 with the following definition.
Table1
(c1 varchar(255) not null PK,
..
)
Sample data: insert into Table1 (c1, c2...) values ('1,6,34,21', 'Test'.....)
Table2
(c1 integer not null PK,
c2...
)
Sample data: insert into Table2 (c1,c2..) values (1, 'Some value'...)
insert into Table2 (c1,c2..) values (6, 'Some value'...)
insert into Table2 (c1,c2..) values (34, 'Some value'...)
insert into Table2 (c1,c2..) values (21, 'Some value'...)
Table1.c1 value is contained in several rows in Table2.c1. So, the issue is I need to extract all rows from Table2.c2 where Table1.c1 = Table2.c1 !!
Any help is appreciated.
Thanks in advance.