if you have the table ordered by field AA then make the report, add a group band and the expresion must be AA, in this moment the report will show you all items related to AA grouped, and in detail group band you can show all of them, but if you want only a summary by every AA, just use the summary band for group AA. If you need to have the cursor grouped before showing the reports must use the group by clause in the select sql sentence.