Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: A little complicated SQL
Dan,
You left out choice #4: "I don't know how to use PL/SQL because I didn't do my homework, and now I have this really important assignment due."
"Daniel Morgan" <dmorgan_at_exesolutions.com> wrote in message
news:3D36DBF8.3003E08E_at_exesolutions.com...
> Alex Kizub wrote:
>
> > I want to improve perfomance of my application but database structure
> > is not good.
> >
> > Here is problemm:
> >
> > One SQL is:
> > select A,B from T1;
> >
> > for each row I have to create another query
> > select C from X1,X2 where X1.A=A and X2.B=B and X1.D=X2.D;
> >
> > X1.A can be absent, X2.B can be absent and relation X1.D=X2.D can be
> > absent.
> >
> > So I can have something or nothing.
> >
> > So right now I have rowset like this
> >
> > A B Query
C
>
> --------------------------------------------------------------------------