pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rocael@usa.net
To: pgsql-sql@postgresql.org
Subject: count number of weeks??
Date: 5 Mar 2001 10:55:16 MST
Message-ID: <20010305175516.18950.qmail@nwcst315.netaddress.usa.net> (raw)

Hi all!
I wonder how in PG7.0.2 I can count the number of weeks from a date field that
I have in a table, lets say:

table trial has in its fields start_date as sysdate(), and now I want to do a
select that will give me the number of weeks from now [sysdate()] to the
start_date.

Thanks for the help!
Rocael.


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1



view thread (2+ messages)  latest in thread

Message-ID: <20010305175516.18950.qmail@nwcst315.netaddress.usa.net>
Permalink:  ../20010305175516.18950.qmail@nwcst315.netaddress.usa.net/
Also on:    postgresql.org/message-id/20010305175516.18950.qmail@nwcst315.netaddress.usa.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: rocael@usa.net
  Subject: Re: count number of weeks??
  In-Reply-To: <20010305175516.18950.qmail@nwcst315.netaddress.usa.net>
  References: <20010305175516.18950.qmail@nwcst315.netaddress.usa.net>

* 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