Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiykP-008lW7-VU for pgsql-general@arkaria.postgresql.org; Wed, 20 Sep 2023 15:04:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qiykO-000lR1-Kj for pgsql-general@arkaria.postgresql.org; Wed, 20 Sep 2023 15:04:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiykN-000lQi-OL for pgsql-general@lists.postgresql.org; Wed, 20 Sep 2023 15:04:12 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiykK-006L18-6h for pgsql-general@lists.postgresql.org; Wed, 20 Sep 2023 15:04:11 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 0C8BD5C01CA; Wed, 20 Sep 2023 11:04:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 20 Sep 2023 11:04:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1695222244; x=1695308644; bh=+OKdRbnhBengHsfVeZMhGgITHot16I+vFFL vs93pAJk=; b=atmaL6oXBFPxIO3cjQCKQ7Mmm1+LEdJX7NtK6Xl37tABf7AFpvJ 1IQ9yHPqVsNwpnpunTomtqcCXygJ/jXJh0mQfKfsxtEafUE1e4Xt6a/ZNOs5hK9e LD8jWxr0zGqh60s1xdZMbDeDS4CPrpDEt5ddB0HANVN5WADXIp9C/HWxF1yAxiXU ORzed9WdFq3N+fEMiefAbuYuCXLHyIjy1tJhxQs4N9M1nMHR8LFoQQWpm3ax6/Pr JYVekht/TtTkcROEZc4W74n/1QrKKGXysv4oxdiTC2yaTjwqCSqHIaPW1E8vULf4 uDWRJl4i7APaGkejsPcG7+0bIMydnsv4SbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1695222244; x= 1695308644; bh=+OKdRbnhBengHsfVeZMhGgITHot16I+vFFLvs93pAJk=; b=f PMG8sajqtwAj8n+wnEoF1xxqCMKI8yBd9cVTAG+ORa0yKQPmWs3F4K/GqVz6muBk kHwfUB1Urklbazx1qvKyhxwA5Kbc02bgGtJPv+UfUso5iBVxReIg59Q9sQ7yOWFV WSn7bs3+bYQzra1LXTeFB2+uXwv6u5gn3SKpEA+atZUAK85qXApDZ5EajcO1VhAM KeV/TqqgRPZZIM7Ls2sHm+Y2x095ou9gMSQUfGUp1gmjzdngbQVBlpBxUKMyB2Lc q46tuoxiIIiei3BCDv48pfNGpNKoCp6yWgUpQmOvCRdht4TLIMlMb7wkBVYjm7zJ mYg2muYThXistTvVNOyKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekfedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleek vdelkeehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Sep 2023 11:04:03 -0400 (EDT) Message-ID: Date: Wed, 20 Sep 2023 08:04:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Calculating Days/Time(Are Loops Neccessary?) Content-Language: en-US To: Anthony Apollis , pgsql-general@lists.postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/19/23 10:09, Anthony Apollis wrote: > I have a table that needs to give me all data up until yesterday. This All data since, beginning of month, beginning of year, beginning of time? > will be part of an SSIS package that runs monthly, a day before the last > day. code is: You need to provide a simplified version of what you are trying to achieve. -- Adrian Klaver adrian.klaver@aklaver.com