Re: Order by not working

From: Peter Coppens <peter(dot)coppens(at)datylon(dot)com>
To: Dan Nessett <dnessett(at)yahoo(dot)com>
Cc: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Order by not working
Date: 2021-02-16 18:34:32
Message-ID: 39D5CE9D-B64F-420F-8260-88B6CD50DED3@datylon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Lewis 2021-02-16 18:44:50 Re: Slow index creation
Previous Message Paul van der Linden 2021-02-16 18:30:23 Slow index creation