I have a query where the user inputs a start and end date.
AND PP.PATTR_CALCUL_DATE >= '31 JUN 2012'
AND PP.PATTR_CALCUL_DATE <= '30 SEP 2012'
The query returns data like this:
| DATE | VALUE |
| 01/07/2012 | 1.25 |
| 31/07/2012 | 2.25 |
| 05/09/2012 | 1.75 |
| 22/08/2012 | 3.99 |
| 30/09/2012 | 1.25 |
| 31/08/2012 | 6.37 |
Based on a varible defined by the user, the query either needs to return all the dates that align to month end in the specified range. So the result in this instance would be:
| DATE | VALUE |
| 31/07/2012 | 2.25 |
| 30/09/2012 | 1.25 |
| 31/08/2012 | 6.37 |
OR it needs to return all dates that align with Quarter end. Where the result would be:
| DATE | VALUE |
| 30/09/2012 | 1.25 |
They also would need a third option that would just return all the data in the original table
Appreciate any help please.
Thanks