Query Statement
the query for a certain date range
SELECT * FROM BudgetActivities WHERE ActivityGroupID IN ( SELECT ActivityGroupID FROM BudgetActivities WHERE ActivityID = 0 AND PeriodStart < _PeriodEnd AND PeriodEnd > _PeriodStart ) ORDER BY ActivityGroupID,ActivityID;
and in readable form
SELECT * FROM BudgetActivities WHERE
ActivityGroupID IN (
SELECT ActivityGroupID FROM BudgetActivities WHERE
ActivityID = 0
AND
PeriodStart < _PeriodEnd
AND
PeriodEnd > _PeriodStart
) ORDER BY ActivityGroupID,ActivityID;
Subject
Views
Written By
Posted
2959
March 30, 2006 07:44AM
1900
March 30, 2006 09:02AM
2076
March 30, 2006 01:41PM
Query Statement
2504
March 30, 2006 01:43PM
2010
March 30, 2006 04:03PM
2012
March 31, 2006 01:42PM
1881
March 31, 2006 04:59PM
2148
April 01, 2006 06:38AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.