Hi Guys
I'm not sure if this is relevant to this group but i need help. I'm busy creating report for client in ssrs and I'm struggling somehow.
I want to write report that will pull the records from the table that i call History account that store history records.
The following is what i have done.
My Query: Select A,B,C
Dadiff(month,C,SYSDATETIME()) AS DateDifference
From Tablename
C is a datefield.
Then i want my report to filter records for 12 months which is calculated by C and current date only.
I tried to use this query i failed.
My Query: Select A,B,C
Dadiff(month,C,SYSDATETIME()) AS DateDifference
From Tablename
Group By C,A,B
Having Dadiff(month,C,SYSDATETIME())=12
C is a datefield.