Subject | RE: [ib-support] Invalid Query or Bug ? |
---|---|
Author | Leyne, Sean |
Post date | 2002-02-17T02:19:32Z |
Hans,
SELECT x.A, y.B
FROM TABLEX x
JOIN TABLEY y WHERE Y.B = X.A
Sean
> Reduced to simplest form, I ran into a problemIn both cases I would recommend using a join based syntax as in:
>
> 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
SELECT x.A, y.B
FROM TABLEX x
JOIN TABLEY y WHERE Y.B = X.A
Sean