From: Robby Slaughter <webmaster@robbyslaughter.com>
To: Josh Berkus <josh@agliodbs.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: RE: Hey! ORDER BY in VIEWS?
Date: Sun, 15 Jul 2001 15:02:43 -0500
Message-ID: <EPEHLKLEHAHLONFOKNHNAENBDCAA.webmaster@robbyslaughter.com> (raw)
In-Reply-To: <web-85953@davinci.ethosmedia.com>
Josh:
You wondered:
>What happens if I put an ORDER BY in a view, then call an ORDER BY in a
>query, e.g.:
>
>CREATE VIEW test_view AS
>SELECT client_name, city, zip FROM clients
>WHERE zip IS NOT NULL
>ORDER BY zip;
>
>SELECT * FROM test_view ORDER BY city;
>
>Does the second ORDER BY override or suppliment the view ORDER BY, or is
>it ignored?
I think this question falls into the "Don't ask, don't tell"
category of computer related questions. I can't think of a reason
to design this way, the behavior isn't specified or sensible, so just
don't do it!
Sorry if I'm over-admonishing. Curiosity killed the cat.
-Robby
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: webmaster@robbyslaughter.com, josh@agliodbs.com, peter_e@gmx.net
Subject: RE: Hey! ORDER BY in VIEWS?
In-Reply-To: <EPEHLKLEHAHLONFOKNHNAENBDCAA.webmaster@robbyslaughter.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