Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 6DFBB9F9586 for ; Tue, 14 Aug 2007 11:24:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 90858-05 for ; Tue, 14 Aug 2007 11:24:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id 84C849F957E for ; Tue, 14 Aug 2007 11:24:08 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Tue, 14 Aug 2007 09:24:07 -0500 Message-Id: <46C174AB.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.2 Date: Tue, 14 Aug 2007 09:23:56 -0500 From: "Kevin Grittner" To: ,"Ben Kim" Cc: Subject: Re: merge two rows where value are null References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/159 X-Sequence-Number: 26490 >>> On Tue, Aug 14, 2007 at 8:48 AM, in message , wrote:=20 > I was studying a solution which foresees the 'case when' construct... > now I can use it in addition to array_to_string . In fact my solution > failed too if , but if there are some = more > values I get them all as well. =20 Is there a timestamp, date, or sequence number that you can use to break ties? Without something like that, I don't think you can do what you want with set-based logic -- you would need to do something procedural without any guarantee that you'd get the same results in two different runs. =20 -Kevin =20