X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 084F39DC884 for ; Sun, 18 Dec 2005 22:19:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69115-04 for ; Sun, 18 Dec 2005 22:19:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 223D89DC843 for ; Sun, 18 Dec 2005 22:19:04 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id jBJ2J4is093291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 18 Dec 2005 19:19:08 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id jBJ2J4pv089631; Sun, 18 Dec 2005 19:19:04 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id jBJ2J4wR089630; Sun, 18 Dec 2005 19:19:04 -0700 (MST) (envelope-from mfuhr) Date: Sun, 18 Dec 2005 19:19:04 -0700 From: Michael Fuhr To: Michael Avila Cc: SQL PostgreSQL MailList Subject: Re: Need SQL Help Finding Current Status of members Message-ID: <20051219021903.GA89543@winnie.fuhr.org> References: <20051218002610.GA4832@winnie.fuhr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.029 required=5 tests=[AWL=0.029] X-Spam-Score: 0.029 X-Spam-Level: X-Archive-Number: 200512/151 X-Sequence-Number: 23693 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