How you approach this really depends upon how you intend to use date and the subreport, and upon your version. Another approach you could use in higher versions is to create a command to return the highest date per group, as in:
select max(table.`date`),table.`prodID`
from table
group by table.`prodID`
-LB