pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Jean-Luc Lachance <jllachan@nsd.ca>
To: josh@agliodbs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL Challenge:  Skip Weekends
Date: Fri, 21 Jun 2002 12:29:27 -0700
Message-ID: <web-1552104@davinci.ethosmedia.com> (raw)
In-Reply-To: <3D13666B.AC687A4A@nsd.ca>

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



view thread (5+ messages)  latest in thread

Message-ID: <web-1552104@davinci.ethosmedia.com>
Permalink:  ../web-1552104@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1552104@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, jllachan@nsd.ca
  Subject: Re: SQL Challenge:  Skip Weekends
  In-Reply-To: <web-1552104@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox