Re: merge two rows where value are null

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <giuseppe(dot)derossi(at)email(dot)it>,"Ben Kim" <bkim(at)tamu(dot)edu>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: merge two rows where value are null
Date: 2007-08-14 14:23:56
Message-ID: 46C174AB.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> On Tue, Aug 14, 2007 at 8:48 AM, in message
<b1a365afcf3059983eecc3db74a3cadf(at)83(dot)225(dot)75(dot)94>, <giuseppe(dot)derossi(at)email(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2007-08-14 15:15:04 Re: postmaster.pid file
Previous Message Hyatt, Gordon 2007-08-14 14:11:40 Re: plpgsql question/problem -- SOLVED