pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: newbie question
Date: Fri, 3 Mar 2006 12:04:47 +0100
Message-ID: <20060303110447.GA7322@merkur.hilbert.loc> (raw)
In-Reply-To: <1141378989.5311.13.camel@geologia5.agora.ing.unipg.it>
References: <1141378989.5311.13.camel@geologia5.agora.ing.unipg.it>

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



view thread (12+ messages)  latest in thread

Message-ID: <20060303110447.GA7322@merkur.hilbert.loc>
Permalink:  ../20060303110447.GA7322@merkur.hilbert.loc/
Also on:    postgresql.org/message-id/20060303110447.GA7322@merkur.hilbert.loc

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: Karsten.Hilbert@gmx.net
  Subject: Re: newbie question
  In-Reply-To: <20060303110447.GA7322@merkur.hilbert.loc>

* 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