From: | Andrew Sullivan <ajs(at)crankycanuck(dot)ca> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: data dependent sequences? |
Date: | 2007-07-17 20:48:44 |
Message-ID: | 20070717204844.GE22634@phlogiston.dyndns.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Tue, Jul 17, 2007 at 12:23:21PM -0600, Stuart wrote:
>
> Except that the value does matter outside of the database and thus
> needs to be remembered. It is not used for ordering at all.
If you have two rows of data, where one column is data that varies as
a function of the data in some other column, then what you have is
data from two different tables, and not one table at all. At least,
according to the rules of normalisation I know.
My best guess, however, is that you're trying to implement a poor
requirement. My bet is that if you dig harder, you'll find out what
the requirement _really_ is, and then you won't have to implement
what sounds like a bad idea.
A
--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
However important originality may be in some fields, restraint and
adherence to procedure emerge as the more significant virtues in a
great many others. --Alain de Botton
From | Date | Subject | |
---|---|---|---|
Next Message | Norm Garand | 2007-07-18 02:42:48 | Inserting an IF statement in the middle of a SELECT in pl/pgSQL code |
Previous Message | Stuart | 2007-07-17 18:23:21 | Re: data dependent sequences? |