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 1nAB9V-0006ph-GG for pgsql-sql@arkaria.postgresql.org; Wed, 19 Jan 2022 13:37:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nAB9U-0000tX-0Y for pgsql-sql@arkaria.postgresql.org; Wed, 19 Jan 2022 13:37:28 +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 1nAB9T-0000sw-NS for pgsql-sql@lists.postgresql.org; Wed, 19 Jan 2022 13:37:27 +0000 Received: from mail.klingler.net ([5.189.138.105]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAB9N-0005Ak-BH for pgsql-sql@lists.postgresql.org; Wed, 19 Jan 2022 13:37:26 +0000 Date: Wed, 19 Jan 2022 14:37:18 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klingler.net; s=2020; t=1642599439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cH3bCLSYOssTG4kQYuT/nSCxk7a2HWXt9GUz4MzjKnw=; b=pQ1Nt6GIsl5ONo43vFT+W+hllOeIdo60gzRuLzCBxawVbZDhpp0qV4dHks7q+oX/jLkDw4 /4Sfb+YeejTYxoWV3KdKTiau9q11Qwz1TzAxTQutYcFR9qf2G15xnGtU6QSS3B2CtH9aZV gO4rI4NxCN2KuaUWs4cd5pb/ISZx9/o= From: Richard Klingler To: pgsql-sql@lists.postgresql.org Message-ID: <20220119143718285650.48772b27@klingler.net> In-Reply-To: References: <20220119141711201637.c796844d@klingler.net> Subject: Re: Clean up shop database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=richard@klingler.net smtp.mailfrom=richard@klingler.net List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 19 Jan 2022 06:32:19 -0700, Rob Sargent wrote: > >> No it does not...but I assume it lists products that where at least >> ordered before January 1st 2021 >> as it contains lower product IDs. >> >> Hmm..gives me: >> >>> ERROR: function max(boolean) does not exist >> LINE 5: having max(o.orderdate < '2021-01-01') >> >> > Sorry >> >> max(o.orderdate )< '2021-01-01' > >> You're a genius :-) Looks perfect... kiitoksia richard