On Thu, Nov 11, 2004 at 09:40:44AM -0500, [EMAIL PROTECTED] wrote:
> [...] The following SQL does not  work, complaint is "Error: no such column: 
> B.GROUP_ID"
> 
> 
> select ID, 
> (select  SERVER_ID from A where A.ID=B.GROUP_ID) as GROUP_ID
> from B [...]

Looks like you haven't read this resource, yet:

    http://sqlite.org/omitted.html

It mentions, among others:
    Variable subqueries
        Subqueries must be static. They are evaluated only once. They
        may not, therefore, refer to variables in the main query.

-- Gerhard
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Attachment: signature.asc
Description: Digital signature

Reply via email to