Subject | RE: [firebird-support] Is this legal SQL? |
---|---|
Author | Helen Borrie |
Post date | 2004-01-25T21:06:22Z |
At 09:07 PM 25/01/2004 +0100, you wrote:
SELECT COL_IN_TABLEONE FROM TABLE
WHERE COL_IN_TABLETWO = 'aValue'
AND HISTORIE > 0)) then
/hb
>There was a mistake in the first post....This is the sql I intended toif (COL_IN_TABLEONE = ANY(
>ask about:
>
>if (exists (select 1 from TABLEONE
> where COL_IN_TABLEONE in(select COL_IN_TABLEONE from TABLE
>where (COL_IN_TABLETWO = "aValue"))
> and HISTORIE > 0 )
> ) then
>begin
>.
>.
>.
>end
SELECT COL_IN_TABLEONE FROM TABLE
WHERE COL_IN_TABLETWO = 'aValue'
AND HISTORIE > 0)) then
/hb