Skip site navigation (1) Skip section navigation (2)

Re: DISTINCT ON troubles

From: Brian Knox <laotse(at)aol(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: DISTINCT ON troubles
Date: 2004-02-19 21:06:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
( 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,

In response to


pgsql-sql by date

Next:From: scott.marloweDate: 2004-02-19 21:39:52
Subject: Re: DISTINCT ON troubles
Previous:From: GnugeekDate: 2004-02-19 21:04:22
Subject: Re: Date / interval question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group