Re: Need SQL Help Finding Current Status of members

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Michael Avila <Michael(dot)Avila(dot)1(at)sbcglobal(dot)net>
Cc: SQL PostgreSQL MailList <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Need SQL Help Finding Current Status of members
Date: 2005-12-19 02:19:04
Message-ID: 20051219021903.GA89543@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, Dec 17, 2005 at 07:34:22PM -0500, Michael Avila wrote:
> The table is not empty. I did some playing around with the SQL Statement but
> got no where. So I added a record status column that will be non-NULL when
> the status becomes history because a new status is added. Yeah, I cheated to
> make it easy!! LOL But it now works and that is what counts!

Even if you're satisfied with whatever you ended up doing, it might
still be educational to find out why the query didn't work. If you
post a test case we'll take a look; we might even be able to suggest
a better solution than the "cheat" you used.

--
Michael Fuhr

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-12-19 03:08:22 Re: Does VACUUM reorder tables on clustered indices
Previous Message Alvaro Herrera 2005-12-18 22:01:39 Re: Does VACUUM reorder tables on clustered indices