Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 77F8163370C for ; Tue, 18 Aug 2009 20:39:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 03021-01 for ; Tue, 18 Aug 2009 23:39:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id B0DE5632FA5 for ; Tue, 18 Aug 2009 20:39:39 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MdYHA-00075j-Nh for pgsql-sql@postgresql.org; Wed, 19 Aug 2009 01:39:36 +0200 Received: from e177125207.adsl.alicedsl.de ([85.177.125.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Aug 2009 01:39:36 +0200 Received: from tim by e177125207.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Aug 2009 01:39:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: pgsql-sql@postgresql.org To: pgsql-sql@postgresql.org From: Tim Landscheidt Subject: Re: FW: simple? query Date: Tue, 18 Aug 2009 23:39:14 +0000 Organization: Lines: 8 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e177125207.adsl.alicedsl.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:NvIX1vo5S5BrhN0qD/bMahMPBPU= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/96 X-Sequence-Number: 33005 Jan Verheyden wrote: > Thanks for the suggestion, the only problem is, if primary key is used then each row should be unique what is not true; since I have a column 'registered' what only can be 1 or 0... > [...] I have no idea what you are trying to say. Tim