X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3783D4758E6 for ; Wed, 9 Apr 2003 05:55:31 -0400 (EDT) Received: from relay.nic.in (relay.nic.in [164.100.10.106]) by postgresql.org (Postfix) with ESMTP id 673D2474E42 for ; Wed, 9 Apr 2003 05:55:28 -0400 (EDT) Received: from relay.nic.in (localhost [127.0.0.1]) by relay.nic.in (8.12.9/8.12.5) with ESMTP id h399xIUr016723 for ; Wed, 9 Apr 2003 15:29:18 +0530 Received: from banas.guj.nic.in (banas.guj.nic.in [164.100.245.211]) by relay.nic.in (8.12.9/8.12.5) with ESMTP id h399x905016683 for ; Wed, 9 Apr 2003 15:29:13 +0530 Received: from BANAS/SpoolDir by banas.guj.nic.in (Mercury 1.44); 9 Apr 03 15:21:10 +05:30 Received: from SpoolDir by BANAS (Mercury 1.44); 9 Apr 03 15:20:58 +05:30 From: "Ramesh PAtel " Organization: Banas Dairy, Palanpur To: pgsql-admin@postgresql.org Date: Wed, 9 Apr 2003 15:20:49 +0530 MIME-Version: 1.0 Subject: problem in Trigger Message-ID: <3E943B25.31935.11FEE93@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Spam-Status: No, hits=-4.7 required=5.0 tests=BAYES_01,RCVD_IN_ORBS,RCVD_IN_RFCI,UPPERCASE_25_50 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/133 X-Sequence-Number: 8288 Sir I have two table EMP_MST and EMP_TRANS field of EMP_MST emp_no, emp_nm, dept_cd field of EMP_TRANS emp_no, trans_dt, olddept_cd, newdept_cd Now i want to Trigger on EMP_TRANS when data INSERT AFTER event when insert one row in EMP_TRANS table that time i want to UPDATE column EMP_MST.dept_cd with latest value of EMP_TRANS.newdept_cd by TRIGGER. Please give some reply. I am looking forwared to your fevarable reply. Ramesh Patel ramesh@banas.guj.nic.in