Re: missing FROM-clause notice but nothing is missing ... - Mailing list pgsql-general

From Jean-Christian Imbeault
Subject Re: missing FROM-clause notice but nothing is missing ...
Date
Msg-id 3E83D68C.9000601@mega-bucks.co.jp
Whole thread Raw
In response to missing FROM-clause notice but nothing is missing ...  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Responses Re: missing FROM-clause notice but nothing is missing ...  (Hadley Willan <hadley.willan@deeperdesign.co.nz>)
Re: missing FROM-clause notice but nothing is missing ...  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
No go with the view ... same error:

DB=# SELECT products.id
      FROM products
      WHERE name ILIKE 'AA'

      UNION

      SELECT prod_id
      FROM v_products_cast_crews
      WHERE cast_crew=1012

      ORDER BY products.id;

NOTICE:  Adding missing FROM-clause entry for table "products"
ERROR:  ORDER BY on a UNION/INTERSECT/EXCEPT result must be on one of
the result columns


pgsql-general by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: Re: missing FROM-clause notice but nothing is missing ...
Next
From: Stephan Szabo
Date:
Subject: Re: missing FROM-clause notice but nothing is missing ...