Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> seems impossible without PL/SQL
Hello,
It is quite unfortunate that the following cannot be achieved with standard SQL. PL/SQL or some other procedural language is needed to achieve the desired effect. Suppose there are three tables:
X(A) Y(A,B) Z(B)
where A is the primary key of X, B is the primary key of Z, and (A,B) is the primary key of Y with Y.A referencing X.A and Y.B referencing Z.B.
It would be nice to be able to dynamically create the following table:
T(A, B1, ..., Bn) where
I would be interested in knowing how the generation of such a table could be automated using Oracle as well as other (R)DBMSs.
Thanks!
Neil Received on Mon Mar 18 2002 - 18:36:03 CST