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
3075
March 30, 2006 07:44AM
1961
March 30, 2006 09:02AM
2136
March 30, 2006 01:41PM
Query Statement
2558
March 30, 2006 01:43PM
2071
March 30, 2006 04:03PM
2069
March 31, 2006 01:42PM
1945
March 31, 2006 04:59PM
2210
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.