From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: giuseppe.derossi@email.it
To: Ben Kim <bkim@tamu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: merge two rows where value are null
Date: Tue, 14 Aug 2007 09:23:56 -0500
Message-ID: <46C174AB.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <b1a365afcf3059983eecc3db74a3cadf@83.225.75.94>
References: <b1a365afcf3059983eecc3db74a3cadf@83.225.75.94>
>>> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, giuseppe.derossi@email.it, bkim@tamu.edu
Subject: Re: merge two rows where value are null
In-Reply-To: <46C174AB.EE98.0025.0@wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox