Subject Re: [ib-support] Invalid Query or Bug ?
Author hans@hoogstraat.ca
Leyne, while trying I ran into the stated problem.

Solved the original query with a quick procedure :)

Much Obliged
Hans

----------------------------------------------------

Leyne, Sean wrote:
>
> Hans,
>
> > Reduced to simplest form, I ran into a problem
> >
> > SELECT A,
> > (SELECT Y.B FROM TABLE Y WHERE Y.B = X.A)
> > FROM TABLE X
> >
> > Works fine .. but
> >
> > SELECT DISTINCT A,
> > (SELECT Y.B FROM TABLE Y WHERE Y.B = X.A)
> > FROM TABLE X
>
> In both cases I would recommend using a join based syntax as in:
>
> SELECT x.A, y.B
> FROM TABLEX x
> JOIN TABLEY y WHERE Y.B = X.A
>
> Sean
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/