Re: standard schemas for addresses, others?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Dennis Gearon <gearond(at)cvc(dot)net>
Cc: "PostgreSQL-General-List (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: standard schemas for addresses, others?
Date: 2003-01-23 13:53:18
Message-ID: 20030123135318.GB12942@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 22, 2003 at 14:18:47 -0800,
Dennis Gearon <gearond(at)cvc(dot)net> wrote:
> Are there any sites with 'standard schemas' for certain, repetitive database needs? For
> example, addresses and their components. Does anyone have a schema for addresses that will
> work for the USA *AND* internation addresses?
>
> entities
> ----------
> Countries
> States
> Counties
> Cities
> street addresess.
> Postal Codes
>
> Some rules:
> -------------
> A/ Do duplicate countries
> B/ No duplicate states in Countries
> (states seem only to exist in 'Federal' governments)
> C/ No duplicate postal codes in Countries
> D/ Duplicate cities are allowed in Countries,
> and in the world.
> E/ Duplicate cities are allowed in States.
> F/ Cities can have multiple postal codes
> G/ Postal codes are assigned to only one city.
> H/ Postal codes are assigned to counties.
> I/

The post office has information on US addresses. They are more complicated
than you might think. Puerto Rico especially.
Note that 5 digit zip codes can span states.

There is FIPS data that you can get from the government over the net
(at least until they realize terrorists might find the data useful)
that has information about streets in the US.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Goble 2003-01-23 14:00:59 Getting both 2 or more results
Previous Message Bruno Wolff III 2003-01-23 13:45:27 Re: HOW-TO do incomplete dates: year, optional month, optional day?