X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BE86DDB251 for ; Fri, 28 Oct 2005 14:13:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42249-02 for ; Fri, 28 Oct 2005 17:13:20 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8022ADB20E for ; Fri, 28 Oct 2005 14:13:20 -0300 (ADT) 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 j9SHD0gE007394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 Oct 2005 11:13:02 -0600 (MDT) (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 j9SHD0on045128; Fri, 28 Oct 2005 11:13:00 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id j9SHCxrc045127; Fri, 28 Oct 2005 11:12:59 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 28 Oct 2005 11:12:59 -0600 From: Michael Fuhr To: Abhishek Cc: boinger , pgsql-sql@postgresql.org Subject: Re: combining records from a single table and presenting them as one record Message-ID: <20051028171259.GA45089@winnie.fuhr.org> References: <506ca6630510271100y367e1fb2hfb05f5ecaae043a3@mail.gmail.com> <9e6d8b530510271446w63c1eb8dp97e7703dde3309a4@mail.gmail.com> <506ca6630510280847m2a875f05y4897cce58e4adf8e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <506ca6630510280847m2a875f05y4897cce58e4adf8e@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.006 required=5 tests=[AWL=0.006] X-Spam-Score: 0.006 X-Spam-Level: X-Archive-Number: 200510/388 X-Sequence-Number: 23241 On Fri, Oct 28, 2005 at 11:47:12AM -0400, Abhishek wrote: > Using LIMIT 1 does return me a single record but please note that the table > can have multiple guids for which I need a unique record with all the digit > types combined. Using LIMIT 1 returns me always one record. :-( Have you looked at contrib/tablefunc? -- Michael Fuhr