I need to caluculate Monthly (current) and Year-To-Date totals of the same value in the same query.
I am using SUM & GROUPBY commands with WHERE clause, this is working for monthly totals, but to have YTD totals I will need another WHERE clause.
I tried to have another SELECT, which is giving error.
Please could someone help me on this.
Many Thanks
Sivi
I am using SUM & GROUPBY commands with WHERE clause, this is working for monthly totals, but to have YTD totals I will need another WHERE clause.
I tried to have another SELECT, which is giving error.
Please could someone help me on this.
Many Thanks
Sivi