I have a list of dates (more than 100) where i need to sum a particular column for each of these dates. I know the below doesn't work but it shows what i'm trying to do...please help
USE FIND
select SUM(a.rm_result_as_pct_of_nav)
from rpt.rm_Report_History a
where
a.analysis_date IN( '20160330','20160228','20160131')
and a.criteria_Set = 'Daily' and a.ptf_id = '10039'
and a.stat_def_id=397
There are no errors but I just get 1 total. I need the total per date, so i can see at the end of each month the pct_of_nav is x.