X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 075989DC997 for ; Fri, 3 Mar 2006 07:04:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27828-08 for ; Fri, 3 Mar 2006 07:04:51 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 6BF4A9DC835 for ; Fri, 3 Mar 2006 07:04:46 -0400 (AST) Received: (qmail invoked by alias); 03 Mar 2006 11:04:48 -0000 Received: from L77e4.l.strato-dslnet.de (EHLO merkur.hilbert.loc) [89.48.119.228] by mail.gmx.net (mp023) with SMTP; 03 Mar 2006 12:04:48 +0100 X-Authenticated: #1433807 Received: from ncq by merkur.hilbert.loc with local (Exim 4.60) (envelope-from ) id 1FF85X-0001wx-H3 for pgsql-sql@postgresql.org; Fri, 03 Mar 2006 12:04:47 +0100 Date: Fri, 3 Mar 2006 12:04:47 +0100 From: Karsten Hilbert To: pgsql-sql@postgresql.org Subject: Re: newbie question Message-ID: <20060303110447.GA7322@merkur.hilbert.loc> References: <1141378989.5311.13.camel@geologia5.agora.ing.unipg.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1141378989.5311.13.camel@geologia5.agora.ing.unipg.it> User-Agent: Mutt/1.5.11+cvs20060126 X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.445 required=5 tests=[AWL=0.169, MAILTO_TO_SPAM_ADDR=0.276] X-Spam-Score: 0.445 X-Spam-Level: X-Archive-Number: 200603/69 X-Sequence-Number: 24415 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