Re: merge two rows where value are null - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: merge two rows where value are null
Date
Msg-id 46C174AB.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to Re: merge two rows where value are null  (giuseppe.derossi@email.it)
List pgsql-admin
>>> On Tue, Aug 14, 2007 at  8:48 AM, in message
<b1a365afcf3059983eecc3db74a3cadf@83.225.75.94>, <giuseppe.derossi@email.it>
wrote:
> 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 <it's raining cats and dogs :-) >, but if there are some more
> values I get them all as well.

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.

-Kevin




pgsql-admin by date:

Previous
From: Lew
Date:
Subject: Re: Downloading PostgreSQL source code version 7.1 through CVS
Next
From: Peter Eisentraut
Date:
Subject: Re: postmaster.pid file