Skip site navigation (1) Skip section navigation (2)

How to split up phone numbers?

From: Andreas <maps(dot)on(at)gmx(dot)net>
To: "pgsql-sql(at)postgresql(dot)org >> PostgresSQL list" <pgsql-sql(at)postgresql(dot)org>
Subject: How to split up phone numbers?
Date: 2012-02-20 14:50:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
is there a way to split up phone numbers?
I know that's a tricky topic and it depends on the national phone number 
I'm especially interested in a solution for Germany, Swizerland and Austria.

I've got everything in a phone number column that makes hardly sense like:
0049 4321 5678 0
and so on...
Those 3 samples are actually the same number in different notations.

Aim would be to get a normalized number split up in 4 seperate columns

so I end up with
49   4321   5678   0     for central
49   4321   5678   42   for Mr. Smith

Is this doable?

It would be a start to at least split off nr_nation and nr_city.


pgsql-sql by date

Next:From: Filip RembiałkowskiDate: 2012-02-20 15:17:11
Subject: Re: How to split up phone numbers?
Previous:From: vpapavasDate: 2012-02-18 02:52:42
Subject: Re: Window function frame clause

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group