From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: pgsql-sql@postgresql.org
Subject: ordering of selected rows from an ordered subselect
Date: Sat, 17 Feb 2007 15:02:06 +0530
Message-ID: <a97c77030702170132h51962513j929786b4f45aa50f@mail.gmail.com> (raw)
Hi,
we know that rows in a table are not stored in any particular order
and explicit order by clause is required to get data in any particular
order.
but does it apply to select queries from ordered subselects also ?
eg
select id , name , expensive_func(name) from
( select id , name from tab order by c1 desc limit 15) as foo ;
is it guaranteed that the final result is order by c1 ?
Regds
mallah.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mallah.rajesh@gmail.com
Subject: Re: ordering of selected rows from an ordered subselect
In-Reply-To: <a97c77030702170132h51962513j929786b4f45aa50f@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox