Re: Primary keys for companies and people

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: David Goodenough <david(dot)goodenough(at)btconnect(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Primary keys for companies and people
Date: 2006-02-07 03:29:06
Message-ID: 4F58B792-2AA9-4B97-93FD-BE9BB22753D1@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Feb 4, 2006, at 2:23 , Merlin Moncure wrote:

> If you kind determine an easy natural differentiator, invent one:
> create table contact
> (
> account text, name text, memo text,
> primary key(account, name, memo)
> );
>
> The memo field is blank in most cases unlees it's needed. Suppose you
> were filling contact information in your databse and Taking your
> second John Smith from an account...your operator says, 'we already
> have a john smith for your account, can you give us something to
> identify him?' Put that in the memo field and there you go.

Merlin,

Thanks for the blissfully simple solution! I think this can work well
for me.

Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message rama krishna 2006-02-07 03:35:01 what is the data type for files(.txt,.doc,.jpeg) in pgsql
Previous Message rama krishna 2006-02-07 03:11:14 Re: Trying to auto start Postgres when server boots up