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
3162
March 30, 2006 07:44AM
2007
March 30, 2006 09:02AM
2176
March 30, 2006 01:41PM
Query Statement
2606
March 30, 2006 01:43PM
2126
March 30, 2006 04:03PM
2109
March 31, 2006 01:42PM
1983
March 31, 2006 04:59PM
2259
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.