From: Curtis Scheer <Curtis@DAYCOS.com>
To: pgsql-sql@postgresql.org
Subject: Table Relationships
Date: Tue, 31 Oct 2006 11:15:26 -0600
Message-ID: <031936836C46D611BB1B00508BE7345D04C02E82@gatekeeper.daycos.com> (raw)
Given the following two tables:
CREATE TABLE public.task
(
taskid int4 NOT NULL DEFAULT nextval('task_taskid_seq'::regclass),
description varchar,
CONSTRAINT pk_taskid PRIMARY KEY (taskid)
)
public.users
(
userid int4 NOT NULL,
username varchar,
CONSTRAINT pk_userid PRIMARY KEY (userid)
)
I want to record which user "performed the task" and which user "checked the
task", I've come up with a few ideas on this but I would like to know what
the correct way would be to implement this into my table design.
Thanks,
Curtis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: Curtis@DAYCOS.com
Subject: Re: Table Relationships
In-Reply-To: <031936836C46D611BB1B00508BE7345D04C02E82@gatekeeper.daycos.com>
References: <031936836C46D611BB1B00508BE7345D04C02E82@gatekeeper.daycos.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox