pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcalculation of pay based on dates
2+ messages / 2 participants
[nested] [flat]
* calculation of pay based on dates
@ 2007-07-13 10:12 Penchalaiah P. <penchalaiahp@infics.com>
0 siblings, 1 reply; 2+ messages in thread
From: Penchalaiah P. @ 2007-07-13 10:12 UTC (permalink / raw)
To: paallen@attglobal.net; Joel Richard <postgres@joelrichard.com>; pgsql-sql-owner@postgresql.org; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql
Hi ...
I want to fix the pay based on joining date and antedate...antedate is
the last date...
Joining date is 01-07-2007
Antedate is 04-07-2007..
On joining date I will fix the pay but before fixing the pay I will
check whether antedate is there or not, if its there then I will see
difference between 2 dates..if difference is 2 years then I will fix the
pay with increments...if difference is less than 2 years then I will fix
the pay with out increments...
Take an example of above 2 dates..there is no 2 years difference between
two dates...
01-07-2007 I will fix the pay...after 3 days current date =
antedate...so again I have to fix the pay with out my intervention...
Is there any jobs or schedules or triggers to call that function when
current date and antedate is equal...
Any one can help on this... I need it very soon....
Regards
Penchal
Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this email from your records.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: calculation of pay based on dates
@ 2007-07-13 10:16 Gary Stainburn <gary.stainburn@ringways.co.uk>
parent: Penchalaiah P. <penchalaiahp@infics.com>
0 siblings, 0 replies; 2+ messages in thread
From: Gary Stainburn @ 2007-07-13 10:16 UTC (permalink / raw)
To: pgsql-sql
On Friday 13 July 2007 11:12, Penchalaiah P. wrote:
> Hi ...
>
> I want to fix the pay based on joining date and antedate...antedate is
> the last date...
>
> Joining date is 01-07-2007
>
> Antedate is 04-07-2007..
>
>
>
> On joining date I will fix the pay but before fixing the pay I will
> check whether antedate is there or not, if its there then I will see
> difference between 2 dates..if difference is 2 years then I will fix the
> pay with increments...if difference is less than 2 years then I will fix
> the pay with out increments...
>
> Take an example of above 2 dates..there is no 2 years difference between
> two dates...
>
> 01-07-2007 I will fix the pay...after 3 days current date =
> antedate...so again I have to fix the pay with out my intervention...
>
> Is there any jobs or schedules or triggers to call that function when
> current date and antedate is equal...
>
>
>
> Any one can help on this... I need it very soon....
>
>
> Regards
> Penchal
>
Surely this would easiest be done using a view rather than a trigger or
function. Simply have the salary calculated every time the view is selected.
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-07-13 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-07-13 10:12 calculation of pay based on dates Penchalaiah P. <penchalaiahp@infics.com>
2007-07-13 10:16 ` Gary Stainburn <gary.stainburn@ringways.co.uk>
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