Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 55BD64778ED for ; Fri, 21 Jun 2002 16:52:06 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id F1CCE4772D8 for ; Fri, 21 Jun 2002 15:29:27 -0400 (EDT) Received: from [216.135.165.74] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1552104; Fri, 21 Jun 2002 12:29:27 -0700 From: "Josh Berkus" Subject: Re: SQL Challenge: Skip Weekends To: Jean-Luc Lachance , josh@agliodbs.com Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Fri, 21 Jun 2002 12:29:27 -0700 Message-ID: In-Reply-To: <3D13666B.AC687A4A@nsd.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200206/303 X-Sequence-Number: 8268 Jean-Luc, > date := now - day_of_the_week > interval := interval + day_of_the_week > date := date + int( interval/5)x7 + ( interval mod 5) Merci, merci, merci! -Josh