From: Peter Coppens <peter.coppens@datylon.com>
To: Dan Nessett <dnessett@yahoo.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Order by not working
Date: Tue, 16 Feb 2021 19:34:32 +0100
Message-ID: <39D5CE9D-B64F-420F-8260-88B6CD50DED3@datylon.com> (raw)
In-Reply-To: <8D049DD1-DC0D-498B-B7C1-773C4FB82B22@yahoo.com>
References: <8D049DD1-DC0D-498B-B7C1-773C4FB82B22.ref@yahoo.com>
<8D049DD1-DC0D-498B-B7C1-773C4FB82B22@yahoo.com>
Not sure how you select the household
>
> The result is (only the first column is shown):
>
> household_name
>
> "Garcia"
> "Armstrong"
> "Armstrong"
> "Bauer"
> "Bauer"
> "Berst"
> "Berst"
> "Minch (xxxx)"
> "Berst"
> “Besel”
but unless you select from the resulting table using again an order by, the rows will be returned in an undetermined order. Such is the nature of the relational model - there is no order you can rely on when selecting, unless you specify it
Hth,
Peter
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: peter.coppens@datylon.com, dnessett@yahoo.com
Subject: Re: Order by not working
In-Reply-To: <39D5CE9D-B64F-420F-8260-88B6CD50DED3@datylon.com>
References: <8D049DD1-DC0D-498B-B7C1-773C4FB82B22.ref@yahoo.com> <8D049DD1-DC0D-498B-B7C1-773C4FB82B22@yahoo.com> <39D5CE9D-B64F-420F-8260-88B6CD50DED3@datylon.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