Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the current field value?

877666Jul 24 2011 — edited Jul 24 2011
Hi dudes,

I need to build a query that returns the current value of a determined field. It's a bit tricky, beacuse this table has a trigger that updates this field constantly and for each update there's a new register. And I need to get this determined value from 5 days ago until now.

Could you guys help me?! I'm running @ 10g.

SELECT percod permissor, decnroser decoder, decfch data_status, decode(decsts,'X','não retornado',decsts) decoder_status
FROM
decode_log
WHERE
decsts = 'X'
AND decfch < (sysdate - 5)
ORDER BY percod ASC;

Thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2011
Added on Jul 24 2011
7 comments
566 views