Re: newbie question - Mailing list pgsql-sql

From Karsten Hilbert
Subject Re: newbie question
Date
Msg-id 20060303110447.GA7322@merkur.hilbert.loc
Whole thread Raw
In response to newbie question  (ivan marchesini <marchesini@unipg.it>)
List pgsql-sql
On Fri, Mar 03, 2006 at 10:43:09AM +0100, ivan marchesini wrote:

> I have fastly created a table in a postgresql database..
> some columns where edited by hand (columns A, B, C), and some others
> (columns D, E, F) have been calculated as a result of mathematical
> equation (where the factors are the A, B, C columns)....
> now I simply need to change some values in the A, B, C columns and I
> would like to obtain the correct values in the D, E, F column...
> I know that this is a tipical problem of a spreadsheet but how can I
> solve it with a DBMS??

Use triggers or a view.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


pgsql-sql by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: newbie question
Next
From: ivan marchesini
Date:
Subject: Re: newbie question