"Lee Crain" <[EMAIL PROTECTED]> wrote:
> The query at the bottom of this email is failing on the word "UNION". (The
> query works correctly in MS SQL Server.)

Works when I try it....  Do you think you might have some
invisible control characters or something in the middle of
the SQL?

> 
> __________________________________________________________________
> SELECT Items.items_idx, Items.name, Items.active FROM Items 
> WHERE active = 'T' AND Items.items_idx IN
> (SELECT related_item FROM RelatedItems WHERE RelatedItems.item = 1777
> UNION
> SELECT item FROM RelatedItems WHERE RelatedItems.related_item = 1777)
> ORDER BY Items.name ASC;
> 
--
D. Richard Hipp <[EMAIL PROTECTED]>


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to