no ORDER BY in subselects? - Mailing list pgsql-sql

From Louis-David Mitterrand
Subject no ORDER BY in subselects?
Date
Msg-id 20000920152303.A3939@styx
Whole thread Raw
Responses Re: no ORDER BY in subselects?  (Philip Warner <pjw@rhyme.com.au>)
Re: no ORDER BY in subselects?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
auction=# SELECT (select b.lot from bid b where b.auction_id = a.id and b.person_id = buyer.id order by b.price limit
1)as last_lot,auction_status(a.id) > 0 AS current, a.lot, a.person_id, next_price(a.id), seller.mail AS seller_mail,
buyer.mailAS buyer_mail, seller.locale AS seller_locale, buyer.login AS buyer_login, num_bid(a.id), seller.login AS
seller_login,t.name AS auction_type FROM auction* a, person seller, person buyer, auction_type t WHERE a.id = 84 AND
seller.id= a.person_id AND COALESCE(a.type,1) = t.id AND buyer.id = 2;
 

ERROR:  parser: parse error at or near "order"

Aren't ORDER BY clauses allowed in subselects?

-- 
Louis-David Mitterrand - ldm@apartia.org - http://www.apartia.org
              Black holes are where God divided by zero.


pgsql-sql by date:

Previous
From: Louis-David Mitterrand
Date:
Subject: Re: sum of agreggates in one SELECT?
Next
From: Louis-David Mitterrand
Date:
Subject: ERROR: replace_vars_with_subplan_refs (!?)