Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lC5BH-0002G5-4q for pgsql-general@arkaria.postgresql.org; Tue, 16 Feb 2021 18:34:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lC5BG-0003Yg-22 for pgsql-general@arkaria.postgresql.org; Tue, 16 Feb 2021 18:34:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lC5BF-0003YZ-NB for pgsql-general@lists.postgresql.org; Tue, 16 Feb 2021 18:34:37 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lC5BC-0002qd-SS for pgsql-general@lists.postgresql.org; Tue, 16 Feb 2021 18:34:36 +0000 Received: by mail-wr1-x430.google.com with SMTP id n8so14387496wrm.10 for ; Tue, 16 Feb 2021 10:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datylon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gmiUHZD4O7Myb8IArpWOphepJi5cDdfQoTY66NOYmY0=; b=QQqqsSOBd3YzklL8sfFxCrFOi0OAxc/jRnwWygUNs4/rfYS8x6MqAaY/fY0zgd4dPA RRoHy7M+5H9n0b3T3iXe0v7184ClBgdln2DU272OvpeS5LbqMf932/KJE5qpXWgUJr2U Hbiwd3Uy42sJn4rs5YVLjPXVNrxw1CztBsEN40qOXgtkefZMfyptN+1c938l2t3IyHPh 2zEx6KYRpdjvKhcg35iLTLvfMxjwj3ouspOMj32JvXo1y66clAAKZdEE38VReZUzwbRM NxsSkHCRAOT4zsT6Pbahms2w+gCl1+Pi4eHShkSgagKlsbu2qqQ5D5ucFJnejDB8SQN+ 7Kwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gmiUHZD4O7Myb8IArpWOphepJi5cDdfQoTY66NOYmY0=; b=ABVyE98SP7Pb7EC1AZhtig8gekAKbB73PxTYJuv69gQJX6lirhFMZCKJi33B+xqJX3 8VtPyq/0OvRbybhGLxoNqp1c1QRpCpe9jwYrupAYNOlbybGhWd3YPSgxMoTqRm6UZO1I 2mkSA9E6RWQqZptenr7P6GQ4z56NG6vzOs5ZPXCZ4QyXSmm0Yq9FbPip/lr0tk6yek25 DfHETxnBL3RG7hK/dO7a8+gsX9UYqgMBpEdjGwAy5/up2wxophDAbL0looQAh7YGLnOD AvSChyPDIaxNusQkws6hpfKE0yWdjTsw9a3nuRkaOZhEoYwbfO0Xw9aLoHQlJN7k4UKL 98QA== X-Gm-Message-State: AOAM533/p1ZuPgL34+RKBodtSAbKLC2xYDXkdX30VqI8bcp1XpiJ/1l1 WK8XflL/4QGU9A4a0LjwBjuMpw== X-Google-Smtp-Source: ABdhPJx8bsDs29VEO204spIF61vVH637c9kLrqYreMll8fXScWpzH5jDNS0G5NXPtIs6bVVtt3WFPg== X-Received: by 2002:adf:edc8:: with SMTP id v8mr24933437wro.330.1613500473324; Tue, 16 Feb 2021 10:34:33 -0800 (PST) Received: from [192.169.1.6] (84-198-87-90.access.telenet.be. [84.198.87.90]) by smtp.gmail.com with ESMTPSA id t30sm26410195wra.56.2021.02.16.10.34.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2021 10:34:33 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Order by not working From: Peter Coppens In-Reply-To: <8D049DD1-DC0D-498B-B7C1-773C4FB82B22@yahoo.com> Date: Tue, 16 Feb 2021 19:34:32 +0100 Cc: PostgreSQL General Content-Transfer-Encoding: quoted-printable Message-Id: <39D5CE9D-B64F-420F-8260-88B6CD50DED3@datylon.com> References: <8D049DD1-DC0D-498B-B7C1-773C4FB82B22.ref@yahoo.com> <8D049DD1-DC0D-498B-B7C1-773C4FB82B22@yahoo.com> To: Dan Nessett X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Not sure how you select the household >=20 > The result is (only the first column is shown): >=20 > household_name >=20 > "Garcia" > "Armstrong" > "Armstrong" > "Bauer" > "Bauer" > "Berst" > "Berst" > "Minch (xxxx)" > "Berst" > =E2=80=9CBesel=E2=80=9D 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=