[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] Date logic question
- Subject: [sqr-users] Date logic question
- From: "Turner, Ivan" <Ivan.Turner@qwest.com>
- Date: Fri, 20 Aug 2004 18:02:15 -0500
- Delivery-date: Fri, 20 Aug 2004 18:03:11 -0500
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- Thread-index: AcSFW3TXlVfNXW4oRGus/+7FSdBENQBpqk9w
- Thread-topic: Date logic question
Hello out there,
I have another process writing an entry date to a table. I need to
determine if 10 days have passed from that date before I can take
action. Will the code below tell me if 10 days have passed using
oracle?
Will my "WHERE" clause work for an oracle db?
LET #TIME_FRAME = 10
!---------------------------------------------------------------
! Proc: 4050-check-grace-pd-expiration
! Desc: Determine grace period has expired before sending
! a disco message to the bus and disconnecting.
!---------------------------------------------------------------
Begin-Procedure 4050-check-grace-pd-expiration
Let $grace_expired = 'N'
BEGIN-SELECT
'X'
LET $grace_expired = 'Y'
FROM DUAL
where SYSDATE >= TO_DATE(&ENTRY_DT) + #TIME_FRAME
END-SELECT
End-Procedure 4050-check-grace-pd-expiration
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users