Re: Query Advice

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Query Advice
Date: 2017-03-30 18:17:20
Message-ID: 931ab9ce-a6e0-1722-ef90-22b4c8ea94a0@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 03/30/2017 12:13 PM, David G. Johnston wrote:
> On Thu, Mar 30, 2017 at 11:03 AM, Gary Chambers <gwchamb(at)gwcmail(dot)com
> <mailto:gwchamb(at)gwcmail(dot)com>>wrote:
>
> Is there a better way to get the company information along with
> all of the
> addresses in a single query? This works, but it requires the
> additional
> step of splitting the addresses by the the delimiter at the
> application
> layer.
>
>
> ​To comment as to "better" without any knowledge of the "application
> layer" doesn't make sense.​
>
> I suggest you provide an example of what you'd like the output to look
> like independent of any query concerns.
>
> ​David J.
>
If we assume the client layer is splitting by the pipe, why not just
send the set of addresses and the client simply iterates over that, no
hokey parsing involved.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jason Aleski 2017-03-30 18:27:27 Re: Query Advice
Previous Message Vincent Elschot 2017-03-30 18:16:58 Re: Query Advice