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
3104
March 30, 2006 07:44AM
1980
March 30, 2006 09:02AM
2151
March 30, 2006 01:41PM
Query Statement
2577
March 30, 2006 01:43PM
2095
March 30, 2006 04:03PM
2085
March 31, 2006 01:42PM
1959
March 31, 2006 04:59PM
2227
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.