Re: insert only if conditions are met? - Mailing list pgsql-sql

From Ragnar Hafstað
Subject Re: insert only if conditions are met?
Date
Msg-id 1125506698.2605.22.camel@localhost.localdomain
Whole thread Raw
In response to Re: insert only if conditions are met?  (Henry Ortega <juandelacruz@gmail.com>)
Responses Re: insert only if conditions are met?  (Henry Ortega <juandelacruz@gmail.com>)
List pgsql-sql
On Wed, 2005-08-31 at 11:49 -0400, Henry Ortega wrote:
> What I am trying to do is
> * Insert a record for EMPLOYEE A to TABLE A 
> IF
> the sum of the hours worked by EMPLOYEE A on TABLE A
> is not equal to N
> 
> Is this possible?

Sure, given a suitable schema

It is not clear to me, if the hours worked are
to be found in the same table you want to insert
into, or not.

gnari





pgsql-sql by date:

Previous
From: Henry Ortega
Date:
Subject: Re: insert only if conditions are met?
Next
From: Henry Ortega
Date:
Subject: Re: insert only if conditions are met?