Actually my problem is I am migrating the SQL Server Code into DB2. So
I am not pretty sure how I can go about doing the cartesian product
update.
Thats the reason I need help.
The data in SQL Server is like i already gave.
c1 c2
--- -----
1 a
1 b
1 a
1 c
2 a
2 b
> > the data is as follows
> >
[quoted text clipped - 30 lines]
> http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
> --
David Portas - 20 Apr 2006 11:37 GMT
> Actually my problem is I am migrating the SQL Server Code into DB2. So
> I am not pretty sure how I can go about doing the cartesian product
[quoted text clipped - 12 lines]
> 2 a
> 2 b
What I said before. No-one can give you the equivalent DB2 code because
your code is broken. Even in SQL Server the result is undefined
(although you may be lucky and get some result that you like). So you
need to give a better specification.
--
David Portas, SQL Server MVP
Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.
SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--
Serge Rielau - 20 Apr 2006 12:16 GMT
> Actually my problem is I am migrating the SQL Server Code into DB2. So
> I am not pretty sure how I can go about doing the cartesian product
[quoted text clipped - 12 lines]
> 2 a
> 2 b
We need the expected OUTPUT.
What do you want the end result to be?
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab