pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Knox <laotse@aol.net>
To: pgsql-sql@postgresql.org
Subject: Re: DISTINCT ON troubles
Date: Thu, 19 Feb 2004 16:06:09 -0500
Message-ID: <40352541.8040507@aol.net> (raw)
In-Reply-To: <FKEOIJEHOIKIOEHCGNCLIENGEDAA.jer@highboard.com>
References: <FKEOIJEHOIKIOEHCGNCLIENGEDAA.jer@highboard.com>

( sorry if this is a repeat, my mail server is being wonky today )

I'm looking for a way, within SQL, given a starting date and an ending 
date, to get back the number of months between the start and end date. 
If I "SELECT end_date - start_date", I get back an interval in days; I 
need months.

Thanks for any suggestions,
Brian



view thread (6+ messages)  latest in thread

Message-ID: <40352541.8040507@aol.net>
Permalink:  ../40352541.8040507@aol.net/
Also on:    postgresql.org/message-id/40352541.8040507@aol.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: laotse@aol.net
  Subject: Re: DISTINCT ON troubles
  In-Reply-To: <40352541.8040507@aol.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