Re: CASE(?) to write in a different column based on a string pattern

From: Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: CASE(?) to write in a different column based on a string pattern
Date: 2019-11-13 17:00:14
Message-ID: 148477df-180e-3a9a-97f8-c27de5c2f2c1@evolu-s.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Il 13/11/19 17:48, Andrew Kerber ha scritto:
> So what you are doing is transforming the table format from vertical
> to horizontal.  I think you will want to use a union to join the table
> to itself along with the case statement to produce the output you are
> looking for.
>
Not precisely, the string pattern is only part of a bigger table (30
columns in total), what I'm trying to achieve is what Geoff explained,
just split values in 3 different columns based on the string pattern

Thanks for your time
Moreno.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Moreno Andreo 2019-11-13 17:03:37 Re: CASE(?) to write in a different column based on a string pattern
Previous Message Andrew Kerber 2019-11-13 16:48:36 Re: CASE(?) to write in a different column based on a string pattern