Re: How to get normalized data from tekst column

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "David Johnston" <polobo(at)yahoo(dot)com>
Cc: <hari(dot)fuchs(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get normalized data from tekst column
Date: 2011-11-25 07:32:32
Message-ID: F581A961F2FA4BA8A925D0662BD50559@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David,

Thank you.

>Whether you can write a sufficient function with 8.1 features I do not
>know.
>You main issue is you need to be able to output multiple records from a
>single input record and doing so before 8.4 seems problematic since
>functions like substring cannot do that.

comment field contain 0.. 2 salemans, no more:

'Aavo 19%, Peedu 15%'
'Lauri-21%,Peedu 15%'
'Taavi 21%'

Maybe in 8.1 it is possible to write 2 select statements. First will extract
first item and second select
will extract second item if second item exists ?

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Condor 2011-11-25 09:19:29 How to add conversion between LATIN1 and WIN1251 ?
Previous Message David Johnston 2011-11-24 22:26:15 Re: How to get normalized data from tekst column